ChartDirector 7.0 (ASP/COM/VB Edition)

Date/Time Specification


Many functions in the ChartDirector API accept dates/times as parameters. The ASP/COM/VB edition of ChartDirector supports dates/times using their native representations in COM, which are as Variant variables of type Date. This includes the Date data type of the Visual Basic programming language.

Internally, ChartDirector represents dates/times as the seconds elapsed since 1-1-0001 00:00:00. When ChartDirector encounters a Variant Date variable, it will automatically convert it to the internal format for processing.

As an alternative of using Variant Date, you may directly use the seconds elapsed since 1-1-0001 00:00:00 to pass dates/times to ChartDirector. ChartDirector includes a utility function ChartDirector.API.chartTime to compute the seconds elapsed since 1-1-0001 00:00:00 from the year, month, day, hour, minute and second components of the date.