前端之家收集整理的这篇文章主要介绍了
AngularJS 日期格式化 实例大全,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
- @H_502_3@域名便宜转让,有需要的自取
- @H_502_3@本地化日期格式化:
- @H_502_3@({{time|date:'medium' }})Apr 14,2016 4:40:08 PM
- @H_502_3@({{time | date:'short' }})4/14/16 4:40 PM
- @H_502_3@({{ today| date:'fullDate' }})Thursday,April 14,2016
- @H_502_3@({{ today | date:'longDate' }})April 14,2016
- @H_502_3@({{ today | date:'mediumDate' }})Apr 14,2016
- @H_502_3@({{ today | date:'shortDate' }})4/14/16
- @H_502_3@({{ today | date:'mediumTime' }})4:40:08 PM
- @H_502_3@({{ today | date:'shortTime' }})4:40 PM
- @H_502_3@年份格式化:
- @H_502_3@四位年份:({{ today | date:'yyyy' }})2016
- @H_502_3@两位年份:({{ today | date:'yy' }})16
- @H_502_3@一位年份:({{ today | date:'y' }})2016
- @H_502_3@月份格式化:
- @H_502_3@英文月份:({{ today | date:'MMMM' }})April
- @H_502_3@英文月份简写:({{ today | date:'MMM' }})Apr
- @H_502_3@两位数字月份:({{ today | date:'MM' }})04
- @H_502_3@一年中的第几个月份:({{ today | date:'M' }})4
- @H_502_3@日期格式化:
- @H_502_3@数字日期:({{ today | date:'dd' }})14
- @H_502_3@一个月中的第几天:({{ today | date:'d' }})14
- @H_502_3@英文星期:({{ today | date:'EEEE' }})Thursday
- @H_502_3@英文星期简写:({{ today | date:'EEE' }})Thu
- @H_502_3@小时格式化:
- @H_502_3@24小时制数字小时:({{ today | date:'HH' }})16
- @H_502_3@一天中的第几个小时:({{ today | date:'H' }})16
- @H_502_3@12小时制数字小时:({{ today | date:'hh' }})04
- @H_502_3@上午或下午的第几个小时:({{ today | date:'h' }})4
- @H_502_3@分钟格式化:
- @H_502_3@数字分钟数:({{ today | date:'mm' }})40
- @H_502_3@一个小时中的第几分钟:({{ today | date:'m' }})40
- @H_502_3@秒数格式化:
- @H_502_3@数字秒数:({{ today | date:'ss' }})08
- @H_502_3@一分钟中内的第几秒:({{ today | date:'s' }})8
- @H_502_3@毫秒数格式化:
- @H_502_3@毫秒数:({{ today | date:'sss' }})990
- @H_502_3@字符格式化:
- @H_502_3@上下午标识:({{ today | date:'a' }})PM
- @H_502_3@四位时区标识:({{ today | date:'Z' }})+0800
- @H_502_3@自定义日期格式化:
- @H_502_3@年月日:({{ today | date:'yyyy-MM-dd' }})2016-04-14
- @H_502_3@时分秒:({{ today | date:'HH:mm:ss.sss' }})16:40:08.990
原文链接:https://www.f2er.com/angularjs/149674.html