calendar类型显示一个日历,以供用户选择时间日期。
专属属性:
通用属性:
<field name="date" type="calendar"
default="NOW" label="开始时间" />
日期格式表:
Character | Description | Example |
---|---|---|
d | Day of the month, 2 digits with leading zeros | 01 to 31 |
a | A textual representation of a day, three letters | Mon through Sun |
e | Day of the month without leading zeros | 1 to 31 |
A | A full textual representation of the day of the week | Monday through Sunday |
w | Numeric representation of the day of the week | 0 (for Sunday) through 6 (for Saturday) |
j | The day of the year (starting from 0) | 001 through 366 |
B | A full textual representation of a month | January through December |
m | Numeric representation of a month, with leading zeros | 01 through 12 |
b | A short textual representation of a month, three letters | Jan through Dec |
Y | A full numeric representation of a year, 4 digits | 1999 or 2003 |
y | A two-digit representation of a year | 99 or 03 |
P | Lowercase Ante Meridiem or Post Meridiem | am or pm |
p | Uppercase Ante Meridiem or Post Meridiem | AM or PM |