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.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Hey, wait!Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

You cannot copy content of this page