Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert timestamp to date in laravel

laravel convert timestamp to date
date('Y-m-d', strtotime($date));

laravel convert date to timestamp
date('Y-m-d H:i:s', strtotime($date));
 
PREVIOUS NEXT
Tagged: #convert #timestamp #date #laravel
ADD COMMENT
Topic
Name
6+3 =