Ausgabe Format
Outputformat
A format can be set under Output format. Below are the options listed.
The following table provides an overview of the predefined date and time formats.
| format name | description | |
|---|---|---|
| General Date or G | Displays a date and / or time. The date display depends on the current culture value of the application. | |
| Long Date, Medium Date or D | Displays a date according to the long date format of the current culture. | |
| Short Date or d | Displays a date according to the short date format of the current culture. | |
| Long Time, Medium Time or T | Displays a time according to the long time format of the current culture. Usually hours, minutes and seconds are displayed. | |
| Short Time or t | Displays a time according to the short time format of the current culture. | |
| f | Displays the long date format and the short time format of the current culture. | |
| F | Displays the long date format and the long time format of the current culture. | |
| g | Displays the short date format and the short time format of the current culture. | |
| M, m | Displays the month and day of a date. | |
| R, r | Formats the date and time according to Greenwich Mean Time (GMT). | |
| s | Formats the date and time as a sortable index. | |
| u | Formats the date and time as a sortable GMT index. | |
| U | Formats the date and time with long date format and long time format as GMT. | |
| Y, y | Formats the date as year and month. | |
Example December 7, 1958, 8:50 PM, 35 seconds:
| Format | Presentation |
|---|---|
| G | 12/7/58 08:50 PM |
| M/d/yy | 12/7/58 |
| d-MMM | 7-Dec |
| d-MMMM-yy | 7-December-58 |
| d MMMM | 7 December |
| MMMM yy | December 58 |
| hh:mm tt | 08:50 PM |
| h:mm:ss t | 8:50:35 P |
| H:mm | 20:50 |
| H:mm:ss | 20:50:35 |
| M/d/yyyy H:mm | 12/7/1958 20:50 |
The following table provides an overview of the predefined numeric formats.
| format name | description |
|---|---|
| General Number, G oder g | Zeigt eine Zahl ohne Tausendertrennzeichen. |
| Currency, C oder c | Zeigt eine Zahl mit Tausendertrennzeichen (falls erforderlich). Rechts vom Dezimaltrennzeichen werden zwei Ziffern angezeigt. Die Ausgabe hängt vom verwendeten Gebietsschema ab. |
| Fixed, F oder f | Zeigt mindestens eine Ziffer links und zwei Ziffern rechts vom Dezimaltrennzeichen. |
| Standard, N oder n | Zeigt eine Zahl mit Tausendertrennzeichen und mindestens eine Ziffer links und zwei Ziffern rechts vom Dezimaltrennzeichen. |
| Percent | Zeigt bei einer Zahl, die mit 100 multipliziert wurde, ein Prozentzeichen (%) unmittelbar auf der rechten Seite. Rechts vom Dezimaltrennzeichen stehen immer zwei Ziffern. |
| P, oder p | Zeigt bei einer Zahl mit Tausendertrennzeichen, die mit 100 multipliziert wurde, ein Prozentzeichen (%) auf der rechten Seite, getrennt durch ein einzelnes Leerzeichen. Rechts vom Dezimaltrennzeichen stehen immer zwei Ziffern. |
| Scientific | Verwendet standardmäßige wissenschaftliche Notation mit zwei signifikanten Stellen. |
| E, oder e | Verwendet standardmäßige wissenschaftliche Notation mit sechs signifikanten Stellen. |
| D, oder d | Zeigt eine Zahl als Zeichenfolge, die den Wert der Zahl im Dezimalformat (Basis 10) enthält. Diese Option wird nur für ganze Zahlen (Byte, Short, Integer, Long) unterstützt. |
| X oder x | Zeigt eine Zahl als Zeichenfolge, die den Wert der Zahl im Hexadezimalformat (Basis 16) enthält. Diese Option wird nur für ganze Zahlen (Byte, Short, Integer, Long) unterstützt. |
| Yes/No | Zeigt No, wenn die Zahl 0 ist. Andernfalls wird Yes angezeigt. |
True/False Zeigt False, wenn die Zahl 0 ist. Andernfalls wird True angezeigt. On/Off Zeigt Off, wenn die Zahl 0 ist. Andernfalls wird On angezeigt.||
Beispiele: (Bei diesen Beispielen wird vorausgesetzt, dass Sie English-U.S. als Gebietsschema ausgewählt haben.) Die erste Spalte enthält den Text für das Ausgabeformat.
| Ausgabeformat | "5" wird angezeigt als | "-5" wird angezeigt als | "0,5" wird angezeigt als |
| 5 | -5 | 0.5 | |
| 0 | 5 | -5 | 1 |
| 0.00 | 5.00 | -5.00 | 0.50 |
| #,##0 | 5 | -5 | 1 |
| $#,##0;($#,##0) | $5 | ($5) | $1 |
| $#,##0.00;($#,##0.00) | $5.00 | ($5.00) | $0.50 |
| 0% | 500% | -500% | 50% |
| 0.00% | 500.00% | -500.00% | 50.00% |
| 0.00E+00 | 5.00E+00 | -5.00E+00 | 5.00E-01 |
| 0.00E-00 | 5.00E00 | -5.00E00 | 5.00E-01 |
Für Boolsche Werte der Datenbank kann ein beliebiger Text der Form wahr/falsch angegeben werden, wobei der Text vor oder nach dem / auch leer sein kann. Ist das Ausgabeformat nicht gesetzt erscheint eine Checkbox.
Für die beiden Spalten Status und Erweiterung kann ein Icon eingeblendet werden. Dazu muss im Ausgabeformat der Text Icon stehen.