Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel parse string to date

$myDate = '12/08/2020';

$date = Carbon::createFromFormat('m/d/Y', $myDate)->format('Y/m/d');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #parse #string #date
ADD COMMENT
Topic
Name
8+3 =