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
- Input date as a string or date data type.
- 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!