How to get the current time of the system and output on the format of 2004-08-12?

xiaoxiao2021-03-06  146

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

Code:

Echo Date ("Y-M-D");

转载请注明原文地址:https://www.9cbs.com/read-127912.html

New Post(0)