Category / Section
How to specify the format in which the datetime needs to be displayed?
1 min read
It is by using DateTimeFormat class. If you want to display the hours and minutes together, then specify “hh:mm” in the DateTimeFormat.
C#
this.chartControl1.PrimaryXAxis.DateTimeFormat = "hh:mm";
VB
Me.chartControl1.PrimaryXAxis.DateTimeFormat = "hh:mm"