Date
Date
Gets the current time of the Echo date (' y-m-d h:i:s ', Times ()); 2018-07-02 13:26:12
Uppercase y 2018 Lowercase y 18
Capital m Jul lowercase m 07 lowercase n 7
lowercase d 02 Lowercase j 2
Lowercase m represents the number of months (with leading), while lowercase n indicates no leading month number.
The uppercase M represents the 3 abbreviated characters of the month, while the lowercase m represents the number of the month (with leading 0);
J with no uppercase, only lowercase J indicates the date of the month, no leading o, or lowercase D if a month with a leading is required.
Time
echo Date (' L ');
Leap Year: 0
echo Date (' L ');
Today is: Tuesday
echo Date (' D ');
Today is: Tue
echo Date (' t ');
This month is 28 days
echo Date (' Z ');
Today is the 36th day of the year.
Lowercase t indicates a few days in the current month
Lowercase z indicates that today is the first day of the year
PHP Time function