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.
- Chartjs-Horizontal overlapping of bars, not whole graph
- Chartjs-How do I run Chart.js with Angular 10 SSR / universal?
Source:stackexchange.com