Currently the DateTime is being read into chart.js from a SQL database using this line of code:
var XLabels = Newtonsoft.Json.JsonConvert.SerializeObject(Model.Select(x => x.DateTime).ToList());
The format of the DateTime is shown like this:
2019-05-14T15:30:02.703
I would like for the T to be removed as well as the milliseconds from this as it's making the graph look messy.
I currently have the data also reading into a table and it appears like this:
12/04/2019 23:01:01
This is how I would like it to appear in the charts as well.