I used date(\'w\', timestamp) and date(\'w\', timestamp) to know the day, date(\'n\', timestamp) for months, etc.
date(\'w\', timestamp)
date(\'n\', timestamp)
Now I\'m using d
Check out the manual: http://www.php.net/manual/en/datetime.format.php
format('Y-m-d H:i:s'); ?>
Will output: 2000-01-01 00:00:00
2000-01-01 00:00:00