The following How-to topics deal with Date and Time in Magic xpa:
How Do I Retrieve the Current Date?
How Do I Retrieve the Current Time?
How Do I Retrieve the Current Time Using Milliseconds Precision?
How Do I Increment a Date Value?
How Do I Increment a Time Value?
How Do I Increment the Value of Date-Time Combined Variables?
How Do I Calculate the Difference Between Two Datetime Values?
How Do I Calculate the Beginning of the Month of a Given Date?
How Do I Calculate the Beginning of the Year of a Given Date?
How Do I Calculate the End of the Month of a Given Date?
How Do I Calculate the End of the Year of a Given Date?
How Do I Retrieve the Name of the Day of the Week of a Given Day?
How Do I Retrieve the Name of the Month of a Given Day?
How Do I Calculate the Day/Month/Year Portion of a Given Date Value?
How Do I Calculate the Hour/Minute/Seconds Portion of a Given Time Value?
How Do I Calculate the Day of the Week of a Date, as a Number?
How Do I Convert a Date Value to a String?
How Do I Calculate a Date Value that Is Stored in a String?