-1

what is the php command for convert this this date and time format 2016-09-15T16:00:00Z format to timestamp (example: 1490313600) ?

Jack Liew
  • 1
  • 1

1 Answers1

0

Its a strtotime()

1.reference1

2.reference2

 <?php
echo strtotime("2016-09-15T16:00:00Z");
?>

ouput

1473955200
prasanth
  • 22,145
  • 4
  • 29
  • 53