Tuesday, March 17, 2009

String.Format(“{0:X}”, args[]) Function : C#.Net

Example: String.Format("{0:D}", DateTime.Now) = 17 Mar 2009
SymbolTypeRepresentation
CCurrency:(123.00)
DDecimal-123
EScientific-1.234500E+002
FFixed point-123.45
GGeneral (default)-123 (default = 'G')
NNumber-123.00
PPercent-12,345.00 %
RRound-trip-123.45
XHexadecimalFFFFFF85
Date Time Formatting
SymbolTypeRepresentation
dShort date07/09/2007
DLong dateMonday, 09 July 2007
tShort time13:42
TLong time13:42:50
fFull date/short timeMonday, 09 July 2007 13:42
FFull date/long timeMonday, 09 July 2007 13:42:50
gGeneral date/short time07/09/2007 13:42
GGeneral date/long time (default)07/09/2007 13:42:50 (default = 'G')
MMonthJuly 20
RRFC1123Mon, 09 Jul 2007 13:42:50 GMT
sSortable2007-07-09T13:42:50
uUniversal sortable2007-07-09 13:42:50Z (invariant)
UUniversal fullMonday, 09 July 2007 20:42:50
YYear2007 July
Standard Enumeration Formatting
GGeneral (default)Green (default = 'G')
FFlagsGreen (flags or integer)
DDecimal number3
XHexadecimal00000003



1 comment:

Nish™ said...

a good post after long time.
.net rocks

Azure Storage Account Types

Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...