dateformat

"Symbol  Meaning             Presentation   Ex."
"------  -------             ------------   ----"
"G       era designator      (Text)         AD"
"y       year                (Number)       1996"
"MMM     month in year       (Text)         Jul"
"M       month in year       (Number)       7"
"d       day in month        (Number)       10"
"h       hour in am/pm       (Number)       12"
"H       hour in day         (Number)       0"
"m       minute in hour      (Number)       30"
"s       second in minute    (Number)       55"
"S       millisecond         (Number)       978"
"E       day in week         (Text)         Tue"
"D       day in year         (Number)       189"
"a       am/pm marker        (Text)         PM"
"z       time zone           (Text)         PST"
"Z       time zone           (Number)       +0800"
"'       quote text          (Text)         'at'"

你可能感兴趣的:(DateFormat)