ADF: Time format (AM/PM) to utc

MasTidar 41 Reputation points
2022-06-13T08:50:07.07+00:00

I have a column where timestamp is '5/23/2022 8:45:34 PM'. I want to create a new column with same data but in UTC format 'yyyy-MM-dd HH:mm:ss' and this new datetime format is 7 hours behind UTC (UTC-7)

I tried doing in azure data factory derived column using toTimestamp before it converts to UTC but it always fail.

toTimestamp('11/04/2020 6:17:40 PM', 'dd-MM-yyyy HH:mm:ss')

but it always return NULL.

Expecting output format: 'dd-MM-yyyy HH:MM:ss'
Can anyone help this data conversion to UTC ?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,149 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 33,556 Reputation points MVP
    2022-06-13T09:44:17.447+00:00

    Hey
    You can use derived column in dataflow with the below expression :

    toTimestamp(date, 'MM/dd/yyyy hh:mm:ss a', 'UTC')

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.