Date Templating with Vue.js

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

Before Reading

This page assumes that you have already included the prismic-vue plugin in your project or that you are using the Prismic Vue.js starter. Check out the Integrating with existing project page to learn how to get setup.


Here's an example of how to integrate a Date field into your template. Date value is a string formatted as "YYYY-MM-DD" (like: "2018-04-24").
In this example, the Date field has the API ID of birthday.

    <p>Birthday: {{ fields.birthday }}</p>

export default {
  data () {
    return {
      fields: {
        birthday: null
  methods: {
    // This is an example query, the important part is above.
    getContent () {
        .then((document) => {
          this.fields.birthday =;
  created () {

To learn more about the Date field check out the user guide.