How to get the current Date and Time in PHP?

Posted by Prem Tiwari | Updated on

Answer: Use the PHP date() Function

Want to get the current Date and Time in PHP? Use PHP date() function to current Date and Time. You can also customize the date & time format as per your requirement.

Here are some date & time format:


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