I need to get today's date in YYYY-MM-DD format.
Any ideas? Using NOW()
I'm getting hours, minutes and seconds too...
It's as simple as
SELECT CURDATE();
Documentation link.
SELECT DATE(NOW())
will work for you :)
The DATE function converts a datetime into a date.
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