title: Formatting x-axis labels as time values in Chart.js
body: <p><a href="https://i.stack.imgur.com/0WX0L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0WX0L.png" alt="enter image description here"></a>Using chart.js I would like to reformat my bottom chart labels into MM DD format (ie. Feb 2)
  How do I get chart.js to recognize the data as dates and convert it?
  It comes in like this from my csv file:
  2020-02-06</p>
  
  <p>Here is my chart.js coding but it doesn't seem to work.</p>
  
  <pre><code>    data: {
              labels: dollar.years,
              datasets: [
                {label: 'Cdn dollar in cents',
                  data: dollar.vals,
                  fill: false,
                  borderColor: '#4BD0B0',
                  pointRadius: 0,
                  borderWidth: 8
                }
                        ]
                  },
  
            options: {
            legend:{
            display:false,
            usePointStyle: true,
  
            labels: {
            boxwidth:10,
            rotation:90
                      }
                    },
  
            scales: {
  
            yAxes: [{
            gridLines:{
            display:true
                      },
  
            ticks: {
            min: .74,
            max: .76,
            stepSize: .025,
                  }
                  }],
  
            xAxes: [{
            gridLines:{
            display:true
                  },
            ticks: {
            labelOffset: 1,
                  },
                    }],
                    }
                    }
          });
        }
  </code></pre>