Date Templating with Javascript

The Date field allows content writers to add a date that represents a calendar day.

Usage

Here's an example of how to integrate a Date field into your template using the PrismicDOM.date object.

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

PrismicDOM.Date(doc.data.postDate)