Date Issue

Pranvi Kanwar 86 Reputation points
2021-06-03T19:01:56.77+00:00

I have a date column xyz which has the value 'Wed Feb 26 00:00:00 UTC 2020' stored in synapse.How do I convert to EST format in derived column in datafactory pipeline so that it's saved in est format

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

Accepted answer
  1. PRADEEPCHEEKATLA 90,601 Reputation points
    2021-06-04T09:49:30.233+00:00

    Hello @Pranvi Kanwar ,

    Thank you for posting your query and using MS Q&A platform.

    Coordinated Universal Time is 4 hours ahead of Eastern Time. So in below expression I am trying to subtract 4 hours from UTC time zone to get EST. Kindly use below expression in your scenario to accomplish the task.

    toTimestamp('Wed Feb 26 00:00:00 UTC 2020','EEE MMM dd HH:mm:ss ZZZ yyyy' , 'UTC')- hours(4)  
    

    102479-image.png

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

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.