Forum Discussion
QUESTION::PIPELINE::COPY DATA::MAPPING::DATETIMEOFFSET FORMAT
Hi Element115 ,
Thanks for using Fabric Community.
Did you tried with the date functions? It is very easy to do convertions.
@convertFromUtc(utcnow() ,'Eastern Standard Time')
Docs to refer - Expressions and functions - Microsoft Fabric | Microsoft Learn
If you have any format issues, you can also refer this thread - Link
Hope this is helpful. Please let me know incase of further queries.
- Element1152 years agoMemorable Member
The problem is that I have a Copy data activity loading from an on-prem DB using this SQL query:
SELECT [Date] , Refresh_Date <-- this is converted to UTC when it should not be , ID , Display , Layout , MUP_screenshot FROM vMUP_Status_15MHow do you suggest I use a function in the SQL query? I don't think it's possible. I would need to intercept every row that comes back from the source, basically iterate over the result set that Copy data receives back before it loads it into the destination, ie the LH.
I am not aware that Copy data let's you do this. And quite frankly, having to spin up a Notebook to do this is extra complication and extra CU consumed and that is not acceptable since the Copy data activity has a Mapping setting for DateTimeOffset format.
So what is the proper way of using this DateTimeOffset format setting?
- Anonymous2 years agoNot applicable
Hi Element115 ,
Thanks for using Fabric Community.
At this time, we are reaching out to the internal team to get some help on this .
We will update you once we hear back from them.- Anonymous2 years agoNot applicable
Hi Element115 ,
Can you please refer this - sql - Convert Datetime column from UTC to local time in select statement - Stack Overflow