| We will introduce several methods for obtaining the week by php and the usage of the date () function of php date. if you need it, please refer to it.
The code is as follows:
Appendix: date function introduction. A-"am" or "pm" A-"AM" or "PM" d-days, two digits. if there are less than two digits, the first digit is set to zero. for example: "01" to "31" D-Day of the week, three English letters; for example, "Fri" F-month, full English name; for example: "January" h-12 hours; for example, "01" to "12" H-24 hours; for example: "00" to "23" g-12 hours, less than two do not fill zero; for example: "1" to 12 "G-24 hours, for example, "0" to "23" I-minutes; for example, "00" to "59" j-days, two digits. if the remaining two digits are not zero; for example: "1" to "31" l-the day of the week, full name in English; for example: "Friday" m-month, two digits. if less than two digits are left blank in front, for example: "01" to "12" n-month, two digits, if less than two digits, do not fill in zero; for example, "1" to "12" M-month, three English letters; for example: "Jan" s-seconds; for example: "00" to "59" S-end with an English sequence, two English letters; for example: "th ", "nd" t-specifies the number of days of the month. for example, "28" to "31" U-total number of seconds w-number of the day of the week, for example, "0" (Sunday) to "6" (Saturday) Y-year, four digits, for example, "1999" y-year, two digits, for example, "99" z-the day of the year; for example, "0" to "365" |