DateTimeInfo Object
Description
The DateTimeInfo object stores the date separated in integers properties: Year, Month, Day, Hour, Minute, and Second. This class is often passed to functions when specifying date range selections, and is returned by the Connection.ReadByDate and Connection.ReadByRecord methods for the "Time" field. This class is also used from within the Selection object.
Remarks
Hour is represented in a 24 hour time format. If an invalid date or time is passed to this object, the following error is thrown: 1047 (Invalid date and time).
Public Properties
![]() |
Returns or sets the year (e.g. 1901 or 2004) |
![]() |
Returns or sets the month (1 through 12) |
![]() |
Returns or sets the day of the month (1 through 31) |
![]() |
Returns or sets the hour expressed in 24 hour time format (0 through 24) |
![]() |
Returns or sets the minute of the hour (0 through 59) |
![]() |
Returns or sets the second of the minute (0 through 59) |
![]() |
Returns or sets the millisecond (0 through 1000) |