EditConversion guide
This is a quick guide providing equivalent conversions between DateTime formats in the ExtJS javascript library
and the .Net Frameworks own DateTime custom string format conventions.
| ExtJS | .Net DateTime | Example |
| d | dd | 01 to 31 |
| D | ddd | Mon to Sun |
| j | d | 1 to 31 |
| l | dddd | 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 | MMMM | January to December |
| m | MM | 01 to 12 |
| M | MMM | Jan to Dec |
| n | M | 1 to 12 |
| t | | 28 to 31 |
| L | | 1 if it is a leap year, 0 otherwise. |
| o | | Examples: 1998 or 2004 |
| Y | yyyy | Examples: 1999 or 2003 |
| y | yy | Examples: 99 or 03 |
| a | | am or pm |
| A | tt | AM or PM |
| g | h | 1 to 12 |
| G | H | 0 to 23 |
| h | hh | 01 to 12 |
| H | HH | 00 to 23 |
| i | mm | 00 to 59 |
| s | ss | 00 to 59 |
| u | fff | Examples: 001 (i.e. 1ms) or 100 (i.e. 100ms) or 100 (i.e. 100ms) or |
| O | | Example: +1030 |
| P | zzz | Example: -08:00 |
| T | | Examples: EST, MDT, PDT ... |
| Z | | -43200 to 50400 |
| c | yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z | Examples: |
| U | Conversion code | 1193432466 or -2138434463 |