DateTime variable

Does anyone know how to set the DateTime variable in Navision 3.7?

// set a datetime to zero… MyDateTime:= 0DT; // set a datetime to the ‘current’ date-time… MyDateTime := CURRENTDATETIME; // get rid of the milliseconds… MyDateTime := ROUNDDATETIME(MyDateTime); // get rid of the seconds… MyDateTime := ROUNDDATETIME(MyDateTime,60000); // set a datetime from a Date and a Time datatype… MyDateTime := CREATEDATETIME(MyDate, MyTime); // or using Date/Time constants… MyDateTime := CREATEDATETIME(010100D, 120000T); // now, get the Date part of a DateTime… MyDate := DT2DATE(MyDateTime); // and get the Time part… MyTime := DT2TIME(MyDateTime);