How to Convert a Date to Timestamp in PHP?

Posted by Prem Tiwari | Updated on

In this example you will learn, how to Convert a Date to Timestamp in PHP. You can use the PHP strtotime() function to convert any textual datetime into Unix timestamp.

The following example demonstrates how this function actually works:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers