We have added full support for date time formatting in newer versions of the chart (after the Knowledgebase article was published), so now you do not need to write custom code to achieve your formatting goal. Follow these steps:
1. Set the PrimaryX axis scale to Date Time
2. In the Label Formatting group box, change the Formatting Mode to Fixed
3. In the Label Format field enter the desired date time label format. For a description of the date time formatting string refer to this topic in the documentation:
Resources > Date Time Format Strings
Best Regards,
Nevron Support Team