title: How to define chart.js time scale date formats
body: <p>I am using chart.js and I want to set custom date formats for my data. How can I do that?</p>
  
  <p>For example, here is my  x axis date config: </p>
  
  <pre><code> scales: {
                      xAxes: [{
                          type: 'time',
                          position: 'bottom',
                          time: {
                              displayFormats: {
                                  **'day': 'Y M D',
                                  'week': 'Y M D',
                                  'month': 'Y M D',
                                  'year': 'Y M D',**
                              }
                          },
  </code></pre>
  
  <p>How can I control the tooltip and axis tick label formats.</p>