Time Format
In form development, handling time and date formats is a common requirement. Through format configuration, you can flexibly display dates and times.
| Name | Description | Example |
|---|---|---|
| yyyy | Year (four digits) | 2016 |
| yy | Year (two digits) | 16 |
| MM | Month (two digits) | 01 |
| M | Month (one digit) | 1 |
| MMMM | Month (English) | January |
| MMM | Month (English abbreviation) | Jan |
| dd | Date (two digits) | 01 |
| d | Date (one digit) | 1 |
| Do | Date (abbreviation) | 1st |
| DD | Day of week (two digits) | 00 |
| D | Day of week (one digit) | 0 |
| dddd | Day of week (English) | Monday |
| ddd | Day of week (English abbreviation) | Mon |
| HH | Hour (24-hour format, two digits) | 01 |
| H | Hour (24-hour format, one digit) | 1 |
| hh | Hour (12-hour format, two digits) | 01 |
| h | Hour (12-hour format, one digit) | 1 |
| mm | Minute (two digits) | 01 |
| m | Minute (one digit) | 1 |
| ss | Second (two digits) | 01 |
| s | Second (one digit) | 1 |
| SSS | Millisecond (three digits) | 019 |
| SS | Millisecond (two digits) | 01 |
| S | Millisecond (one digit) | 1 |
| A | AM/PM (uppercase) | AM/PM |
| a | AM/PM (lowercase) | am/pm |
| ZZ | Timezone | +0800 |
Custom Time Format
You can freely combine these format symbols to create the desired time format. For example:
- yyyy年MM月dd日 Output example: 2016年01月01日
- yyyy-MM-dd HH:mm:ss Output example: 2024-08-27 14:05:30
- MM/dd/yy Output example: 12/24/16
- H点m分s秒 Output example: 9点41分0秒
- HH:mm Output example: 14:05
- HH:mm:ss Output example: 14:05:30


