MKTIME, PHP date/timestamp YYYY-MM-DD
MySQL curdate
:
You can do in query:
select curdate()
PHP date
echo date('Y-m-d');
If you want to pass your own date format:
echo date('Y-m-d', strtotime($your_date));
date("Y-m-d")
should give you the current date in that format.