How to Convert a datatype of a date column from UTC to PST in COPY activity of ADF?

Prakatheeswari 20 Reputation points
2024-02-17T05:13:34.9766667+00:00

I am using a copy activity to fetch data from api and put it in sql db. I have a date column in my dataset and it is in UTC format. When I put it into my DB I want it to be in PST. In the source side I added additional column and gave the following as my value.

@formatDateTime(convertTimeZone(utcNow(), 'UTC', 'Pacific Standard Time'), 'yyyy-MM-dd HH:mm:ss.fffffff')

But this didn't change my datatype. I want to to change the format of the column from utc to pst in the pipeline.

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

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.