Answers for "convert date string to unix js"

PHP
7

php convert string to date

$time = strtotime('10/16/2003');

$newformat = date('Y-m-d',$time);

echo $newformat;
// 2003-10-16
Posted by: Guest on February-28-2020
0

convert date to unix timestamp javascript

new Date('2012.08.10').getTime() / 1000 //secs
new Date('2012.08.10').getTime() //milliseconds
Posted by: Guest on December-24-2020

Code answers related to "convert date string to unix js"

Browse Popular Code Answers by Language