Articles in this section
Category / Section

How to provide the input data of DateTime type?

1 min read

 

The Start date and time must be expressed using instance of DateTime class. If you want to add the days, AddDays() method can be used with that instance. AddHours() and AddMinutes() are for displaying hours and minutes.

C#

DateTime start = new DateTime(2006, 11, 1);

ChartSeries series = this.chartControl1.Model.NewSeries(“”);

series.Points.Add(start.AddDays(7), 363);

series.Points.Add(start.AddDays(14), 417);

 

VB

Dim start As DateTime = new DateTime(2006, 11, 1)

ChartSeries series = Me.chartControl1.Model.NewSeries(“”)

series.Points.Add(start.AddDays(7), 363)

series.Points.Add(start.AddDays(14), 417)

 

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