Articles in this section
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"

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied