title: Outputting Wrong Date in Javascript
body: <p>I have a problem outputting the date in Javascript.
  I want to output <code>2021-03-02T00:00:00+00:00</code> to March 2, 2021</p>
  <pre><code>export function parseDate(dateString) {
    const [date, time] = dateString.split(' ')
    return new Date(`${date}T${time}.000Z`) // Z = UTC
  }
  
  export function formatDate(dateString) {
    if (!dateString) return ''
  
    const date = parseDate(dateString)
    return date.toLocaleString('en', {
      year: 'numeric',
      month: 'long',
      day: 'numeric'
    })
  }
  
  
  
   console.log(formatDate(data?.createdAt))
  </code></pre>