Have a look at the documentation here: https://docs.mendix.com/refguide/date-creation/
Create the date time attribute/variable and pass that in change object