The convertDaysToDate() method
The convertDaysToDate() method converts days to year, date, or month. The convertDaysToDate() method handles negative days, interpreted as backwards from December 31, 1899 as 0. The convertDaysToDate() method interprets January 1, 1900 as 1. No dates before January 1, 0000 are allowed. The method relies on HCL OneDB™ to generate valid dates.
Method signature
public static java.sql.Date convertDaysToDate (int dt)
Input parameter
- dt
- The number of days since January 1, 1900 (as 1).