欢迎访问中国最大的EXTJS讨论社区 首页 论坛 教程

Ext教程-一起Ext

当前位置: 首页 > 教程 > Ext Grid >

Ext常用日期格式数字格式说明

时间:2009-04-20 17:51来源:未知 作者:admin 点击:
在Ext里面经常用到: function formatDate(value) { return new Date(value).dateFormat('Y/m/d'); }; 下面把所有常用格式和数字格式的说明列出来: d 01 to 31 D Mon to Sun j 1 to 31 l Sunday to Saturday N 1 (for Monday) t

  在Ext里面经常用到:
function formatDate(value)
{
        return new Date(value).dateFormat('Y/m/d');
};

下面把所有常用格式和数字格式的说明列出来:
d 01 to 31
     D Mon to Sun
     j 1 to 31
     l Sunday to Saturday
     N 1 (for Monday) through 7 (for Sunday)
     S st, nd, rd or th. Works well with j
     w 0 (for Sunday) to 6 (for Saturday)
     z 0 to 364 (365 in leap years)
     W 01 to 53
     F January to December
     m 01 to 12
     M Jan to Dec
     n 1 to 12
     t 28 to 31
     L 1 if it is a leap year, 0 otherwise.
     o Examples: 1998 or 2004
     Y Examples: 1999 or 2003
     y Examples: 99 or 03
     a am or pm
     A AM or PM
     g 1 to 12
     G 0 to 23
     h 01 to 12
     H 00 to 23
     i 00 to 59
     s 00 to 59
     u 001 to 999
     O Example: +1030
     P Example: -08:00
     T Examples: EST, MDT, PDT ...
     Z -43200 to 50400
     c 2007-04-17T15:19:21+08:00
     U 1193432466 or -2138434463
声明:本站教程文章版权为一起Ext(http://www.17ext.com/)所有,转载请注明出处
顶一下
(2)
100%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容