Support Board
Date/Time: Mon, 03 Nov 2025 12:20:28 +0000
Post From: SCDateTime.AddYears fails
| [2020-11-04 15:33:17] |
| jesslinn - Posts: 108 |
|
If one happens to add a leap year the month/day will not be the same. Assuming that one wants one year added to Dec 1, 2003 to be Dec 1, 2004, a workaround is to use GetDateTimeYMDHMS_MS, increment the year, and use SetDateTimeYMDHMS_MS, since then the leap year logic is used. |
