EXTJS 日期时间转换 Mon Apr 25 01:00:00 UTC+0800 2011 转成 Y-m-dTH:i:s 2011-4-28T18:02:00

Date.patterns = { ISO8601Long:"Y-m-d H:i:s", ISO8601Short:"Y-m-d", ShortDate: "n/j/Y", LongDate: "l, F d, Y", FullDateTime: "l, F d, Y g:i:s A", MonthDay: "F d", ShortTime: "g:i A", LongTime: "g:i:s A", SortableDateTime: "Y-m-d//TH:i:s", UniversalSortableDateTime: "Y-m-d H:i:sO", YearMonth: "F, Y" }; var dt = new Date("Mon Apr 25 01:00:00 UTC+0800 2011"); alert(dt.format(Date.patterns.SortableDateTime));

你可能感兴趣的:(EXTJS 日期时间转换 Mon Apr 25 01:00:00 UTC+0800 2011 转成 Y-m-dTH:i:s 2011-4-28T18:02:00)