Code:
$ TIME = mktime (); $ TIME1 = Getdate ($ time); $ DATE = $ TIME1 [YEAR]. "-" $ TIME1 [MON]. "-". $ Time1 [MDAY]; Echo $ DATE;
Quote:
MDAY is the number of days to return a month
Echo Date ("Y-M-D");