PHP strftime() FunctionLast Updated : 17 Mar 2025 The strftime() function is used to set the date and time according to the local settings . It formats the GMT/UTC date and time. SyntaxParameters
ReturnThis function returns a string formatted according to the given format string using the given timestamp or the current local time if no timestamp is given. Example 1Output: May 08 1998, 20:00:00 UTC 2018. August 09. Thursday. 08:12:47 UTC Example 2Output: Dec 31 2015 20:00:00 Dec 31 2016 19:00:00 Next TopicPhp-strtotime-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India