| 0 |
0-Platzhalter |
string.Format("{0:00.0000}",Wert) |
1000000,0000 |
| # |
Zahl-Platzhalter |
string.Format("{0:(#).##}",Wert) |
(1000000) |
| . |
Dezimalpunkt |
string.Format("{0:0.0}",Wert) |
1000000,0 |
| , |
Tausender Trennzeichen |
string.Format("{0:0,0}",Wert) |
1.000.000 |
| ,. |
Ganzzahliges Vielfaches von 1.000 |
string.Format("{0:0,.}",Wert) |
1000 |
| % |
Prozentwert |
string.Format("{0:0%}",Wert) |
100000000% |
| e |
Exponenten-Platzhalter |
string.Format("{0:00e+0}",Wert) |
10e+5 |
| d |
kurzes Datumsformat |
string.Format("{0:d}",Wert) |
03.09.2010 |
| D |
langes Datumsformat
|
string.Format("{0:D}",Wert) |
Freitag, 3. September 2010 |
| t |
kurzes Zeitformat |
string.Format("{0:t}",Wert) |
16:07 |
| T |
langes Zeitformat |
string.Format("{0:T}",Wert) |
16:07:01 |
| f |
Datum & Uhrzeit komplett (kurz)
|
string.Format("{0:f}",Wert) |
Freitag, 3. September 2010 16:07 |
| F |
Datum & Uhrzeit komplett (lang)
|
string.Format("{0:F}",Wert) |
Freitag, 3. September 2010 16:07:01 |
| g |
Standard-Datum (kurz) |
string.Format("{0:g}",Wert) |
03.09.2010 16:07 |
| G |
Standard-Datum (lang) |
string.Format("{0:G}",Wert) |
03.09.2010 16:07:01 |
| M |
Tag des Monats |
string.Format("{0:M}",Wert) |
03 September |
| r |
RFC1123 Datumsformat |
string.Format("{0:r}",Wert) |
Fri, 03 Sep 2010 16:07:01 GMT |
| s |
sortierbares Datumsformat |
string.Format("{0:s}",Wert) |
2010-09-03T16:07:01 |
| u |
universell sortierbares Datumsformat |
string.Format("{0:u}",Wert) |
2010-09-03 16:07:01Z |
| U |
universell sortierbares GMT-Datumsformat |
string.Format("{0:U}",Wert) |
Freitag, 3. September 2010 14:07:01 |
| Y |
Jahr/Monats-Muster |
string.Format("{0:Y}",Wert) |
September 2010 |
| dd |
Tag |
string.Format("{0:dd}",Wert) |
03 |
| ddd |
Tagname (Kürzel) |
string.Format("{0:ddd}",Wert) |
Fr |
| dddd |
Tagname (ausgeschrieben) |
string.Format("{0:dddd}",Wert) |
Freitag |
| gg |
Ära |
string.Format("{0:gg}",Wert) |
n. Chr. |
| hh |
Stunde 2stellig |
string.Format("{0:hh}",Wert) |
04 |
| HH |
Stunde 2stellig (24-Stunden) |
string.Format("{0:HH}",Wert) |
16 |
| mm |
Minute |
string.Format("{0:mm}",Wert) |
07 |
| MM |
Monat |
string.Format("{0:MM}",Wert) |
09 |
| MMM |
Monatsname (Kürzel) |
string.Format("{0:MMM}",Wert) |
Sep |
| MMMM |
Monatsname (ausgeschrieben) |
string.Format("{0:MMMM}",Wert) |
September |
| ss |
Sekunde |
string.Format("{0:ss}",Wert) |
01 |
| tt |
AM oder PM (nur englisch) |
string.Format("{0:tt}",Wert) |
|
| yy |
Jahr 2stellig |
string.Format("{0:yy}",Wert) |
10 |
| yyyy |
Jahr 4stellig |
string.Format("{0:YY}",Wert) |
2010 |
| zz |
Zeitzone (kurz) |
string.Format("{0:zz}",Wert) |
+02 |
| zzz |
Zeitzone (lang) |
string.Format("{0:zzz}",Wert) |
+02:00 |