<?php echo Date(Y); ?>
$date_input = '2003';
$date_output= date( "Y-m-d", mktime( 0, 0, 0, 1, 1, $date_input ));
//date_output = 2003-01-01// 1. create a date instance
$date = new DateTime;
// 2. set the date using the setDate(year, month, date) method on the
// $date instance
$date->setDate(1999,02,19);
Also in PHP:
- How to Redirect Website to a Mobile Version when Accessed on a Mobile Device
- convert timestamp php
- alias migratedb='php artisan migrate'
- array_unique object
- build strong password in php
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in
- all php error report
- base 64 decode before email send laravel
- add object in array php
- $loop variable laravel
- exit try php
- fatch time from database and add in current time in php
- datetime to string php
- check composer version php
- clear storage laravel
- adding days in date, php
- date("Y-m-d",
- create random string in php
- create seede for table in laravel
- array in array php foreach example
- create laravel 6 project
- css date function
- create laravel migration
- echo all php errpr