Skip to content

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

Week functions

Example

DateTime dtDue
Get DateTimeSet 2026 7 7 9 30 0 0 to dtDue
Get DateAddDay dtDue 7 to dtDue

See also