DateTime¶
Include: Use System\DateTime.pkg
DateTime APIs construct dates and datetimes, add date or timespan intervals, and calculate weekday and week-of-year values.
Construction¶
- DateSet - Creates a DateTime from year, month, and day.
- DateTimeSet - Creates a DateTime with date and time parts.
Date arithmetic¶
- DateAdd functions - Add years, months, days, hours, minutes, seconds, or milliseconds to a DateTime.
- SpanAdd functions - Add day/time intervals to a TimeSpan.
Week functions¶
- Week functions - Calculate weekday and week-of-year values.
Related types¶
- DateTime type - DateTime language type.
- TimeSpan type - TimeSpan language type.
Example¶
DateTime dtDue
Get DateTimeSet 2026 7 7 9 30 0 0 to dtDue
Get DateAddDay dtDue 7 to dtDue