method
DateField.Format
Format selects whether the field accepts a date, timestamp, or local time. DateOnly is the default. Admin display settings do not change the stored format.
Arguments
| Argument | Type | Description |
|---|---|---|
value | DateFormat | The value value. |
Returns
The declared result.
DateFieldFull signature
func (f DateField) Format(value DateFormat) DateFieldRelated types
DateFieldDateField configures a field for a date, time, or timestamp.
DateFormatDateFormat selects a date field's accepted value contract. The admin control follows this format; changing presentation never changes accepted API values.