Chartjs-How to change format of DateTime reading into chart.js chart?

1👍

Welcome.

Try formatting it like this to get your output as you require:

DateTime.Now.ToString("dd/MM/yy HH:mm:ss")

Did you try searching this in the stack overflow or google before putting the question up here? In the future, try searching out as this is a duplication of couple of questions like these: C# DateTime to "YYYYMMDDHHMMSS" format

You should be able to make your own answers from them. Have a nice day.

Leave a comment