Community
Participate
Working Groups
dateTimeLib.dateFromInt This function should create a date using int as a number of days after a starting point date: 1969-12-31. Looks like the starting date for JavaScript is 1899-12-31. See Bug 358495. library dateFromInt myDate date; myString string; function dateFromInt(){@Test} myDate = dateTimeLib.dateFromInt(25); myString = StringLib.format(myDate, "MM/dd/yyyy"); LogResult.assertStringEqual("dateFromInt", "01/25/1970", myString); end end dateFromInt - Failed: Expected value = '01/25/1970' Actual value = '01/25/1900'
Fixed in 20111121 build.
Verified.