BitterCoder's Wiki

Edit

Conversion 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 DateTimeExample
ddd01 to 31
DdddMon to Sun
jd1 to 31
lddddSunday to Saturday
N1 (for Monday) through 7 (for Sunday)
Sst, nd, rd or th. Works well with j
w0 (for Sunday) to 6 (for Saturday)
z0 to 364 (365 in leap years)
W01 to 53
FMMMMJanuary to December
mMM01 to 12
MMMMJan to Dec
nM1 to 12
t28 to 31
L1 if it is a leap year, 0 otherwise.
oExamples: 1998 or 2004
YyyyyExamples: 1999 or 2003
yyyExamples: 99 or 03
aam or pm
AttAM or PM
gh1 to 12
GH0 to 23
hhh01 to 12
HHH00 to 23
imm00 to 59
sss00 to 59
ufffExamples: 001 (i.e. 1ms) or 100 (i.e. 100ms) or 100 (i.e. 100ms) or
OExample: +1030
PzzzExample: -08:00
TExamples: EST, MDT, PDT ...
Z-43200 to 50400
cyyyy'-'MM'-'dd'T'HH':'mm':'ss'ZExamples:
UConversion code1193432466 or -2138434463

ScrewTurn Wiki version 2.0.2. Some of the icons created by FamFamFam.