Answers for "javascript date to php date"

PHP
0

javascript date to php date

<?php
$jsDateTS = strtotime($jsDate);
if ($jsDateTS !== false) date('Y-m-d', $jsDateTS);
else echo "Invalid Date Format"
?>
Posted by: Guest on August-10-2021

Browse Popular Code Answers by Language