Ext的日期格式说明
2008-08-21 07:41
447 查看
格式 | 说明 | 例子 |
d | 月里面的日期,2位,不足前面补0 | 01-31 |
D | 星期里面的每天的缩写 | Mon - Sun |
j | 月里面的日期,前面不补0 | 1-31 |
l | 星期的完整写法 | Sunday to Saturday |
N | ISO-8601的星期表示法 | 1=星期一,7是星期日 |
S | 英语习惯的月内每天的2位的前缀 | st, nd, rd or th. |
w | 星期的数字表示 | 0=星期日,6等星期六 |
Z | 在年内的第几天,从0开始 | 0-364,闰年是365 |
W | ISO-8601格式的,年内的星期数,从星期一开始 | 01-53 |
F | 月份的完整文字表示 | January to December |
m | 月份的2位数字表示,不足前面补零 | 01-12 |
M | 月份的缩写文字表示 | Jan to Dec |
n | 月份的数字表示,不补零 | 1-12 |
t | 月份的最大天数 | 28-31 |
L | 是否为闰年 | 1是闰年,0则不是 |
o | ISO-8601的年份表示,和Y相同,但是如果星期(W)输入前一年或者后一年,则替换为那个年 | 1998,2004 |
Y | 4位的年份表示 | 2008 |
y | 2位的年份表示 | 98,08 |
a | 小写的上下午表示 | am pm |
A | 大写的上下午 | AM PM |
g | 12小时制,不补零 | 1-12 |
G | 24小时制,不补零 | 0-23 |
h | 12小时制,2位,不足补零 | 01-12 |
H | 24小时制,2位,不足补零 | 00-23 |
i | 分钟,2位,不足补零 | 00-59 |
s | 秒,2位,不足补零 | 00-59 |
u | 毫秒,前面补零 | 001 999 |
O | Difference to Greenwich time (GMT) in hours and minutes | +1030 |
P | Difference to Greenwich time (GMT) with colon between hours and minutes | -08:00 |
T | Timezone abbreviation of the machine running the code | EST, MDT, PD |
Z | Timezone offset in seconds (negative if west of UTC, positive if east) | -43200 to 50400 |
c | ISO 8601 date (note: milliseconds, if present, must be specified with at least 1 digit. There is no limit to how many digits the millisecond value may contain. see http://www.w3.org/TR/NOTE-datetime for more info) | 2007-04-17T15:19:21+08:002008-03-16T16:18:22Z |
U | Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) | 1193432466 -2138434463 |
相关文章推荐
- Ext的日期格式说明
- Ext的日期格式说明(转载)
- Ext的日期格式说明(转载)
- 转:Ext的日期格式说明
- Ext.Net_Ext.Net.DateColumn 日期格式问题
- Ext.net 中日期格式的计算
- 关于datediff(year,开始日期,结束日期)中year格式的说明,特别注意year两边不能加引号,否则报错
- SqlServer 日期格式说明
- [转载]C# ToString格式字符串整理(Format)(数字、日期和枚举的标准格式设置说明符)(SamWang)
- 日期格式模式 说明
- 修改日期格式的系统API的说明
- Ext.net 中日期格式的计算
- 日期格式说明
- mysql日期格式说明符
- C# ToString格式字符串整理(Format)(数字、日期和枚举的标准格式设置说明符)
- ext 日期格式
- delphi 最全日期格式_DateUtils时间单元说明
- SqlServer_日期格式说明
- Oracle to_date的使用方法 日期格式参数 含义说明 Oracle to_date的使用方法
- 【整理】C# ToString格式字符串整理(Format)(数字、日期和枚举的标准格式设置说明符)(SamWang)