Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

javascript date to php date

<?php
$jsDateTS = strtotime($jsDate);
if ($jsDateTS !== false) date('Y-m-d', $jsDateTS);
else echo "Invalid Date Format"
?>
 
PREVIOUS NEXT
Tagged: #javascript #date #php #date
ADD COMMENT
Topic
Name
3+8 =