PHP·98 questions

How to work with date and time?

Answer
date('Y-m-d H:i:s') — formatting.
time() — Unix timestamp.
strtotime('next Monday').
DateTime class: new DateTime().
DateInterval for differences.
Was this answer helpful?

More questions in this topic

Related questions from other topics