Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert date to timestamp in laravel builder

$date = '2021-05-20';
date('Y-m-d H:i:s', strtotime($date));
 
PREVIOUS NEXT
Tagged: #convert #date #timestamp #laravel #builder
ADD COMMENT
Topic
Name
1+4 =