2011-03-04 21:00:40
I want to get current date and time in the above format. How do I do this in PHP?
date('Y-m-d H:i:s')
. See the manual for more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With