Skip to main content Skip to complementary content

formatDateTime

Creates a string containing a datetime value with a specific pattern from a datetime.

Information noteNote: This feature is only available in Talend Cloud Pipeline Designer and Talend Data Mapper.

Arguments

  1. Input datetime.
  2. Datetime pattern as a string:
    • yyyy for the year
    • MM for the month
    • dd for the day
    • HH for the hours
    • mm for the minutes
    • ss for the seconds
    • SSS for a fraction of a second
    • ZZZZZ for the time zone

Examples

Expression Result
formatDateTime(getCurrentDateTime(), "YY-dd-MM'T'HH:mm") "22-13-07T11:43"

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!