The FieldFormat property contains the DateTimeFormat enumeration value indentifying the source field format for the field.
control.FieldFormat [= DateTimeFormat]
DateTimeFormat. Gets or sets the enumeration value describing the source field format for the field.
To set the FieldFormat of a control, click on the right side of the property and choose one of the options in the drop-down box. The format of the field will also depend upon whether the FieldType property setting is DateField, TimeField, or TimestampField.
|
FieldFormat Property Setting |
FieldType: DateField |
FieldType: TimeField |
FieldType: TimestampField |
|---|---|---|---|
| ISO | yyyy-mm-dd 2005-10-25 |
hh.mm.ss 07.50.28 |
2005-10-25-07.50.28.510285 |
| USA | mm/dd/yyyy 10/25/2005 |
hh:mm AM 07:50 AM |
10/25/2005 7:50:28 AM |
| EUR | dd.mm.yyyy 25.10.2005 |
hh.mm.ss 07.12.28 |
10/25/2005 7:50:28AM |
| JIS | yyyy-mm-dd 2005-10-25 |
hh:mm:ss 07:50:28 |
10/25/2005 7:50:28AM |
| YMD | yy/mm/dd 05/10/25 |
10/25/2005 7:50:28AM | 10/25/2005 7:50:28AM |
| MDY | mm/dd/yy 10/25/05 |
10/25/2005 7:50:28AM | 10/25/2005 7:50:28AM |
| DMY | dd/mm/yy 25/10/05 |
10/25/2005-2006 7:50:28AM | 10/25/2005 7:50:28AM |
| JUL | yy/ddd 05/Tue |
10/25/2005 7:50:28AM | 10/25/2005 7:50:28AM |
| HMS | 10/25/2005 7:50:28AM | hh:mm:ss 07:50:28 |
10/25/2005 7:50:28AM |
DateTimeField Class | DateTimeField Class Members | FieldType Property | DateTimeFormat Enumeration