Get Started - Manual - SIMATIC AX - Datetime functions. - System.DateTime,library

System.DateTime library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
6.0.94
Edition
08/2025
Language
English (original)
Package Name
@ax/system-datetime

Install with Apax:

apax add @ax/system-datetime

Add the namespace in your ST code:

USING System.DateTime;
Functions Description
GetDayOfWeek Gets the day of the week represented by a LDATE or LDATE_AND_TIME.
IsLeapYear Determines whether a year is a leap year.
NewDateAndTime Provides a LDATE_AND_TIME value from given inputs.
NewTimeOfDay Provides a LTIME_OF_DAY value from given inputs.
SplitDate Gets the components of a LDATE value.
SplitDateAndTime Gets the components of a LDATE_AND_TIME value.
SplitTimeOfDay Gets the components of a LTIME_OF_DAY value.
Types Description
DayOfWeek Specifies the day of the week.