Wednesday, July 27, 2011

date formats

Date and Time Format Patterns






All

the

patterns:
0MM/dd/yyyy07/27/2011
1

dddd, dd MMMM yyyy
Wednesday, 27 July 2011
2dddd, dd

MMMM yyyy HH:mm
Wednesday, 27 July 2011 08:40
3dddd, dd

MMMM yyyy hh:mm tt
Wednesday, 27 July 2011 08:40

AM
4dddd, dd MMMM yyyy H:mmWednesday, 27 July 2011

8:40
5dddd, dd MMMM yyyy h:mm ttWednesday, 27 July 2011

8:40 AM
6dddd, dd MMMM yyyy HH:mm:ssWednesday, 27 July

2011 08:40:28
7MM/dd/yyyy HH:mm07/27/2011

08:40
8MM/dd/yyyy hh:mm tt07/27/2011 08:40

AM
9MM/dd/yyyy H:mm07/27/2011

8:40
10MM/dd/yyyy h:mm tt07/27/2011 8:40

AM
11MM/dd/yyyy HH:mm:ss07/27/2011

08:40:28
12MMMM ddJuly 27
13MMMM

dd
July

27
14yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK2011-07-27T0

8:40:28.2891564-04:00
15yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK2011-07-27T08:40:28.2891564-04:00
16ddd, dd MMM yyyy

HH':'mm':'ss 'GMT'
Wed, 27 Jul 2011 08:40:28 GMT
17ddd,

dd MMM yyyy HH':'mm':'ss 'GMT'
Wed, 27 Jul 2011 08:40:28

GMT
18yyyy'-'MM'-'dd'T'HH':'mm':'ss2011-07-27T08:40:28< /td>
19HH:mm08:40
20hh:mm

tt
08:40

AM
21H:mm8:40
22h:mm

tt
8:40

AM
23HH:mm:ss08:40:28
24yyyy'-'MM

'-'dd HH':'mm':'ss'Z'
2011-07-27 08:40:28Z
25dddd, dd

MMMM yyyy HH:mm:ss
Wednesday, 27 July 2011

08:40:28
26yyyy MMMM2011

July
27yyyy MMMM2011 July

The patterns for

DateTime.ToString ( 'd' )

:
0MM/dd/yyyy07/27/2011

The patterns for

DateTime.ToString ( 'D' ) :
0dddd, dd MMMM

yyyy
Wednesday, 27 July 2011

The patterns for

DateTime.ToString ( 'f' ) :
0dddd, dd MMMM yyyy

HH:mm
Wednesday, 27 July 2011 08:40
1dddd, dd MMMM yyyy

hh:mm tt
Wednesday, 27 July 2011 08:40 AM
2dddd, dd MMMM

yyyy H:mm
Wednesday, 27 July 2011 8:40
3dddd, dd MMMM

yyyy h:mm tt
Wednesday, 27 July 2011 8:40 AM

The patterns for

DateTime.ToString ( 'F' ) :
0dddd, dd MMMM yyyy

HH:mm:ss
Wednesday, 27 July 2011 08:40:28

The patterns for

DateTime.ToString ( 'g' ) :
0MM/dd/yyyy HH:mm07/27/2011

08:40
1MM/dd/yyyy hh:mm tt07/27/2011 08:40

AM
2MM/dd/yyyy H:mm07/27/2011

8:40
3MM/dd/yyyy h:mm tt07/27/2011 8:40

AM

The patterns for DateTime.ToString ( 'G' )

:
0MM/dd/yyyy HH:mm:ss07/27/2011

08:40:28

The patterns for DateTime.ToString ( 'm' )

:
0MMMM ddJuly 27

The patterns for

DateTime.ToString ( 'r' ) :
0ddd, dd MMM yyyy HH':'mm':'ss

'GMT'
Wed, 27 Jul 2011 08:40:28 GMT

The patterns for

DateTime.ToString ( 's' )

:
0yyyy'-'MM'-'dd'T'HH':'mm':'ss2011-07-27T08:40:28

The patterns for DateTime.ToString ( 'u' )

:
0yyyy'-'MM'-'dd HH':'mm':'ss'Z'2011-07-27

08:40:28Z

The patterns for DateTime.ToString ( 'U' )

:
0dddd, dd MMMM yyyy HH:mm:ssWednesday, 27 July 2011

08:40:28

The patterns for DateTime.ToString ( 'y' )

:
0yyyy MMMM2011 July




No comments:

Post a Comment