Skip to main content

Using Advanced Expressions: To_Date

Distributor guide to the TO_DATE advanced expression in Encompass Fusion reports: convert a datetime or text value such as {LocalToday} to a date for date functions. Requires v23.01+.

B
Written by Bailey Naas-Thornton

Minimum Version Required: 23.01

Steps

Converts an input expression to a date data type.


​Syntax

TO_DATE(Date Value)


​Arguments

Date Value:

A date or datetime field that you want to convert to a Date data type. The most common use is {LocalToday}. A date datatype is required for certain functions like Extract, Year, Month, etc.


​Example

TO_DATE('2019-01-01') = 1/1/2019
​
For this example, {LocalToday} = '2019-02-20'
​
TO_DATE({LocalToday}) = 2/20/2019

Did this answer your question?