Timestamp Templating with Javascript

The Timestamp field allows content writers to add a date and time.

Usage

Here’s an example of how to retrieve the value of a Timestamp field. In this case, the Timestamp field has the API ID event_date.

Copy
var PrismicDOM = require('prismic-dom');

var eventTime = PrismicDOM.Date(document.data.event_date);