simple date function in php

simple date function in php

PHP Date() - Format the Date
d - Represents the day of the month (01 to 31)
m - Represents a month (01 to 12)
Y - Represents a year (in four digits)
Example of Simple Date Function
<?php
echo date("Y-m-d")
?>
Result
2009-09-11