Skip to main content Skip to complementary content
  • New archived content: Talend MDM, Talend Data Catalog 8.0, and Talend 7.3 products reached their end of life in 2024. Their documentation was moved to the Talend Archive page and will no longer receive content updates.
Close announcements banner

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!