Modulus Financial Engineering HomeModulus Financial Engineering
RMD Server™

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

Public PropertyYear Returns or sets the year (e.g. 1901 or 2004)
Public PropertyMonth Returns or sets the month (1 through 12)
Public PropertyDay Returns or sets the day of the month (1 through 31)
Public PropertyHour Returns or sets the hour expressed in 24 hour time format (0 through 24)
Public PropertyMinute  Returns or sets the minute of the hour (0 through 59)
Public PropertySecond Returns or sets the second of the minute (0 through 59)
Public PropertyMillisecond  Returns or sets the millisecond (0 through 1000)