This is an advanced-use feature, and likely not something you'll need to configure. What you probably want is the content types reference!
The date
field represents a date and time picker. It can be used for data values that are valid date strings.
This field plugin uses react-datetime
under the hood.
interface DateConfig extends FieldConfig, DatetimepickerProps {component: 'date'name: stringlabel?: stringdescription?: stringdateFormat?: boolean | string // Extra properties from react-datetimetimeFormat?: boolean | string // Moment date format}
This interfaces only shows the keys unique to the date field.
Visit the Field Config docs for a complete list of options.
Any extra properties added to the the date
field definition will be passed along to the react-datettime
component. Moment.js format is used. See the full list of options here.
const formConfig = {fields: [{name: 'created_at',label: 'Created At',component: 'date',dateFormat: 'MMMM DD YYYY',timeFormat: false,},],}
© TinaCMS 2019–2024