Example - 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
USING System.DateTime;

PROGRAM SampleProgram
    VAR_TEMP
        year, month, day : INT;
    END_VAR
    SplitDate(
        value := LDATE#2012-01-12,
        year => year,
        month => month,
        day => day
    );
END_PROGRAM