<template>
  <div>
    <h2>test</h2>
    <p> {{ date }} </p>
  </div>
</template>

<script>
export default {
  name: 'jsonView',
   data: () => ({
          date: ''
        }),
  methods: {
    printDate: function () {
             return new Date().toLocaleDateString();
          }
  },
  mounted: function () {
          this.date = this.printDate();
        },
}
</script>

<style scoped>
h4{
    color: blue;
}
</style>