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.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

There are times when you want to check if a string exists in another string when working with the OutSystems...
When working with the API’s in Outsystems , there are times when you might want to transfer the UserAgent from...