I'm having an issue displaying date on highcharts on Safari or Chrome for IPad.
Using the following code to set the format:
// Convert sharepoint date to MMM YYYY format
for (i = 0; i < customerSortedData.length; i++) {
if (moment(customerSortedData[i].Date, "ddd MMM DD YYYY HH:mm:ss", 'br', true).isValid())
{
customerSortedData[i].MonthYear = moment(customerSortedData[i].Date, "ddd MMM DD YYYY HH:mm:ss", 'br', true).format('MMM YYYY');
}
}
, it shows correctly on windows Chrome browser, like 'Apr 2017', 'May 2017'.....'Feb 2018', 'Mar 2018".
The same chart on IPad shows: 'Aug 2017', 'Feb 2018', 'Dec 2017', 'Oct 2017', 'Jan 2018', 'Apr 2017' and then 'Invalid date'. It is expected to show last 12 months in order, but it shows 6 dates only.
Could you please help me to figure out how to fix it?