Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 544 Bytes

format-datetime.md

File metadata and controls

23 lines (13 loc) · 544 Bytes

Format Datetime

The FORMAT-DATETIME directive formats CDAP datetime values to custom pattern strings.

Syntax

format-datetime <datetime_column> "<pattern>"

Usage Notes

The FORMAT-DATETIME directive will format CDAP datetime values to custom pattern strings. Pattern is the format for the output string.

If the column is null applying this directive is a no-op. The column to be formatted should be of type datetime.

Examples

See FORMAT-DATE for an explanation and examples the pattern strings.