OutSystems – Convert DateTime to Date

Outsystems provides plenty of built-in date functions and one such function is the DateTimeToDate function used to convert DateTime to a Date value.

How to Convert DateTime to Date in OutSystems?

Example

DateTimeToDate(#2021-01-23 10:20:30#)

The above code returns converts the DateTime component to date component by dropping the time component from the result.

The DateTimeToDate can be used un any server-side logic , client-side logic, database aggregates and local storage.