title: How to compare dates in Vuejs?
body: <p>Hi I'm trying to make a library/book tracking app which tracks the date and returns the status like its returned or lost etc. I need to compare dates in my app but i can't find how to in vuejs could you please help thanks.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;meta charset=utf-8&gt;
      &lt;script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"&gt;&lt;/script&gt;
      &lt;script src="newVue.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="app"&gt;
          &lt;input type="text" v-model="message" required placeholder="Enter Name"&gt;
          &lt;input type="date" v-model="enterdate" placeholder="Enter Date"&gt;
          &lt;table border="1" v-for="item in items"&gt;
              &lt;tr&gt;
                  &lt;td&gt;{{item.name}}&lt;/td&gt;
                  &lt;td&gt;{{item.date}}&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
          &lt;button @click="addRow"&gt;Add&lt;/button&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>window.addEventListener('load',()=&gt;{
  window.vue = new Vue({
      el: '#app',
      data: {
          message:'',
          enterdate:'',
          items:[{
              name:'',
          }]
      },
      methods: {
          addRow() {
              this.items.push({
                  name: this.message,
                  date: this.enterdate,
  
  
             })
          },
      }
  })
  </code></pre>
  
  <p>})</p>