- p : 小写上下午 (‘am’ or ‘pm’) meridian in lower case (‘am’ or ‘pm’) - according to locale file
- P : 大写上下午 (‘AM’ or ‘PM’) meridian in upper case (‘AM’ or ‘PM’) - according to locale file
- s : 一位的秒 seconds without leading zeros
- ss : 两位的秒 seconds, 2 digits with leading zeros
- i : 一位的分钟 minutes without leading zeros
- ii : 两位的分钟 minutes, 2 digits with leading zeros
- h : 一位的24进制小时 hour without leading zeros - 24-hour format
- hh : 两位的24进制小时 hour, 2 digits with leading zeros - 24-hour format
- H : 一位的12进制小时 hour without leading zeros - 12-hour format
- HH : 两位的24进制小时 hour, 2 digits with leading zeros - 12-hour format
- d : 一位的天 day of the month without leading zeros
- dd : 两位的天 day of the month, 2 digits with leading zeros
- m : 一位的分钟 numeric representation of month without leading zeros
- mm : 两位的分钟 numeric representation of the month, 2 digits with leading zeros
- M : 缩写月份单词,三位数 short textual representation of a month, three letters
- MM : 全拼月份单词 full textual representation of a month, such as January or March
- yy : 两位的年 two digit representation of a year
- yyyy : 四位的年 full numeric representation of a year, 4 digits
bootstrap日期格式化
欢迎关注我的其它发布渠道