Gene 发表于 2013-2-4 22:14:33

Date and Time format string

SpecifierDescription
%Y         Year (four digits)
%y         Year (last two digits)
%b,      %B Short month, full month
%m         Month (number)
%d         Day of month (left-padded with zeros)
%e         Day of month (left-padded with blanks)
%a,      %A Short day name, full day name
%H,      %I Hour (24-hour clock), hour (12-hour clock)
%M         Minute
%S         Second
%c         Equivalent to "%a %b %d %H:%M:%S %Y"
%x         Equivalent to "%m/%d/%y"
页: [1]
查看完整版本: Date and Time format string