Configure the Timestamp Field
This article explains what the Timestamp field is and how to configure it in the Custom Type builder.
The Timestamp field allows content writers to add a specific date and time.

Timestamp vs. Date
This field is different from the Date field, which does not include a time of day.
When configuring a Timestamp field, you'll see the options to set the Field name, API ID, and Field placeholder.

type
string (required)
Value must be Timestamp
config
object
Object for the configuration options
config.placeholder
string
A user-friendly placeholder for the field in the entry editor
config.label
string
The label that shows up for the field in the document editor
config.default
string
If set to now, it will automatically fill with today's date and the current time. The default value will only apply to newly created documents. When you set or change the default value, it will not change existing documents.
The following JSON defines a Timestamp field with a default value of today’s date and the current time:
"example_timestamp" : {
"type" : "Timestamp",
"config" : {
"label" : "Created On",
"default" : "now"
}
}
Here is an API response example of a Timestamp field with the API ID of example_timestamp:
// API response example of a Timestamp field
{
//...
"example_timestamp":"2020-06-27T05:00:00+0000"
}
Was this article helpful?
Can't find what you're looking for? Spot an error in the documentation? Get in touch with us on our Community Forum or using the feedback form above.