Date Field
Without time
Schema definition:
import defineField from '@/lib/field/defineField'
defineField({
id: 'publishedAt',
type: 'date',
includeTime: false
})
TODO: demo date field without time
Include time
Schema definition:
import defineField from '@/lib/field/defineField'
defineField({
id: 'publishedAt',
type: 'date',
includeTime: true
})
TODO: demo date field with time
Format as text
TODO: when the field value needs to be displayed as a string
Change Details
Data:
{
"prev" : "2023-12-26T09:29:50.411Z",
"next" : null,
"userId" : "root",
"supervisorId" : null,
"operation" : "remove",
"source" : "formula",
"type" : "date",
"time" : "2023-12-26T09:29:50.411Z"
}
TODO: demo date field prev next