Formats date/timestamp according to the given formatString(optional) & culture(optional). Default formatString is “DD MMM YYYY” & default culture is “en”.
Note//Using CanvasJS.formatDate. var chart = new CanvasJS.Chart("container", { title:{ text: "Sales data for " + CanvasJS.formatDate(new Date(2012, 06, 13)) //gets formatted as 13 Jul 2012 }, . . }); chart.render();
To know more about date format string , please refer to this section.
To know more about adding custom culture, info please refer to this section