You are viewing content for 5.1 | 5.0 | 4.9 | 4.8 | 4.7 | 4.6 | 4.5 | 4.4 | 4.3 | Previous Releases


toChar

Returns the equivalent string given a date type expression and string format.

Example

toChar(SALES_BV.SourceColumns.TIME_ID,"MM-dd-yyyy")

This example converts timestamp values into strings with “MM-dd-yyyy” format.

Syntax

result = toChar(date expr d, string fmt)
  • d : date expression to convert
  • fmt : string describing format of output

    Returns

    string

Notes

toChar is used to resolve a date type into a format appropriate for the locale.

toChar supports the following formats:

  • mm-DD-yy
  • dd-MM-yy
  • day-of-week, day month year

© Incorta, Inc. All Rights Reserved.