If you need to create a string from a dateTime you can use: formatDateTime($YourDate, 'dd-MM-yyyy')
If you need to parse a dateTime from a string you can use: parseDateTime('01-01-1990', 'dd-MM-yyyy')