title: How to use Date-FNS in VueJS?
body: <p>I'm new to <strong><a href="https://date-fns.org/" rel="noreferrer">Date-FNS</a></strong> and I need to get this example to work in VueJS:</p>
  
  <pre><code>import { format, formatDistance, formatRelative, subDays } from 'date-fns'
  
  format(new Date(), '[Today is a] dddd')
  //=&gt; "Today is a Wednesday"
  
  formatDistance(subDays(new Date(), 3), new Date())
  //=&gt; "3 days ago"
  
  formatRelative(subDays(new Date(), 3), new Date())
  //=&gt; "last Friday at 7:26 p.m."
  </code></pre>
  
  <p>How to get it to work?</p>