PHP Week Get Code:
Date ("L"); Data can be obtained in English for weeks such as Sunday
Date ("W"); This can get the numbers for weeks like 123, note that 0 is Sunday
Get Chinese Weekday:
$weekarray =array ("Day", "one", "two", "three", "four", "five", "six"); Define an array first
echo "Week". $weekarray [Date ("W")];
Gets the specified date:
$weekarray =array ("Day", "one", "two", "three", "four", "five", "six");
echo "Week". $weekarray [Date ("W", "2011-11-11")];
Because the date function is so powerful, he can do all this work. I'll attach a table in my handbook. Easy access at any time
1. A-"AM" or "PM"
2. A-"AM" or "PM"
3. D-A few days, two digits, if less than two digits before the 0; such as: "01" to "31"
4. D-Days of the week, three English letters; such as: "Fri"
5. F-month, full name in English; such as: "January"
6. Hours of h-12 hours; such as: "01" to "12"
7. H-24 hour hour; such as: "00" to "23"
8. G-12 hour, less than two does not fill 0; such as: "1" to 12 "
9. G-24 hours of the hour, less than two does not fill 0; such as: "0" to "23"
Ten. I-minutes; such as: "00" to "59"
J-A few days, two digits, if less than two bits do not fill 0; such as: "1" to "31"
L-Day of the week, English full name; such as: "Friday"
M-month, two digits, if less than two digits in front of 0; such as: "01" to "12"
N-month, two digits, if less than two digits are not 0; such as: "1" to "12"
M-month, three letters of English; such as: "Jan"
S-sec; such as: "00" to "59"
+ S-tail with English ordinal number, two English letters; such as: "th", "nd"
T-the number of days in the specified month; such as: "28" to "31"
U-Total number of seconds
W-Number of days of the week, such as: "0" (Sunday) to "6" (Saturday)
Y-year, four digits; such as: "1999"
Y-year, two digits; such as: "99"
(z)-the day ordinal of a year; such as: "0" to "365"
http://www.bkjia.com/PHPjc/486124.html www.bkjia.com true http://www.bkjia.com/PHPjc/486124.html techarticle PHP Get Code: Date ("L"),//data can get English weeks such as Sunday date ("W");//This can get the number of weeks such as 123, note 0 is Sunday to get Chinese day of the week ...