![]() |
VOOZH | about |
The Task is to convert a Date to a timestamp using PHP. The task can be done by using the strtotime() function in PHP. It is used to convert English textual date-time description to a UNIX timestamp. The UNIX timestamp represents the number of seconds between a particular date and the Unix Epoch.
Syntax:
strtotime ($EnglishDateTime, $time_now)
Example:
Output:
1600819200
1600905600
1557964800