Skip to main content Skip to complementary content
Close announcements banner

makeDateTime

Creates a datetime from a date and a time.

Information noteNote: This feature is only available in Talend Cloud Pipeline Designer and Talend Data Mapper.
The time zone is defined based on the arguments:
  • If either the date or the time includes a time zone, that time zone is used.
  • If neither includes a time zone, the local machine's time zone is used.
  • If both have a time zone, the time zone must be the same, otherwise an error occurs.

Arguments

  1. Input date as a string or date data type.
  2. Input time as a string or time data type.

Examples

Expression Result
$date = toDate("2021-01-02"), makeDateTime($date, "13:45-01:00") 2021-01-02T13:45-01:00

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 – let us know how we can improve!