DateTime Property

The DateTime property allows access to axis date/time label settings. Returns an AutoAxisDateTime object. This is a read-only property.

Syntax

object.DateTime

object.DateTime =DateTime

 

Example

This example shows how to set a date time axis using the returned AutoAxisDateTime object properties.

 'The axis value 0 will be equal to April 12, 2002 at

 '1:15:45 PM and will increment by single days

 

 'Set the axis increment for dates to increase in value

  DateTime.axisIncrement = 1

 

 'Set the starting axis value

  DateTime.axisValue = 0

 

 'Set the day of the month for the axis value

  DateTime.Day = 12

 

 'Set the format for the date/time labels 4 = d-mmm-yy

  DateTime.Format = 4

 

 'Set the hour of the day for the axis value

  DateTime.Hour = 13

 

 'Set the minute of the hour for the axis value

  DateTime.Minute = 15

 

 'Set the month of the year for the axis value

  DateTime.Month = 4

 

 'Set the second of the minute for the axis value

  DateTime.Second = 45

 

 'Set the Corresponding TimeIncrement for the Axis Increment

  DateTime.timeIncrement = grfDay

 

 'Set the year for the axis value

  DateTime.Year = 2002

 

Used by: AutoAxisTickLabels object