Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Convert timestamp into custom format 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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #timestamp #custom #format #Laravel
ADD COMMENT
Topic
Name
4+4 =