日期参数format格式详细用法

格式字符 关联属性/说明  
d ShortDatePattern  
D LongDatePattern  
f 完整日期和时间(长日期和短时间)  
F FullDateTimePattern(长日期和长时间)  
g 常规(短日期和短时间)  
G 常规(短日期和长时间)  
m、M MonthDayPattern  
r、R RFC1123Pattern  
s 使用当地时间的 SortableDateTimePattern(基于 ISO 8601)  
t ShortTimePattern  
T LongTimePattern  
u UniversalSortableDateTimePattern 用于显示通用时间的格式  
U 使用通用时间的完整日期和时间(长日期和长时间)  
y、Y YearMonthPattern  
posted on 2007-11-26 10:47  tonyYe  阅读(1300)  评论(0编辑  收藏  举报