here is the code I am using but does not seem to work, any help would be greatly appreciated.
PHP code,
<?
$date = new DateTime($rdatetime);
$sdate1 = $date->format('M d, Y H:I:s');
echo $sdate1;
?>
Java Script
<script type="text/javascript">
// Set the date we're counting down to
//var countDownDate = new Date("Jan 5, 2018 15:37:25").getTime();
var countDownDate = new Date('$sdate').getTime();
//var countDownDate = new Date("$sdate").getTime();
</Script>
I want to pass $sdate1 into $sdate. Hope I was able to explain my problem correctly.