<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic Value Date formatting in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3656288#M1697</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Can you please try to use the utcNow() function with custom formatting in Fabric Data Factory:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Instead of relying on the pre-formatted date time, you can use the utcNow() function within your expression to generate the current date and time in UTC. Then, use string manipulation functions like substring and concat to format it according to your requirement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;@utcNow('yyyy-MM-ddThh:mm:ss') + '+00:00'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 10:00:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-24T10:00:39Z</dc:date>
    <item>
      <title>Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3652865#M1692</link>
      <description>&lt;P&gt;I've got an API call that I'm trying make that requires a date format like;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yyyy-MM-ddThh:mm:ss+00:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, even though I can get Data Factory to create this as a format, as soon as I try to use it as a dynamic value in a Rest Copy Data additional header the system decides to reformat it as;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yyyy-MM-ddThh:mm:ssZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it's no longer accepted by the API I'm calling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to force Data Factory to stop doing this conversion?&amp;nbsp; I've tried using CONCAT, sticking the value into a String Variable, nothing seems to work.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 02:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3652865#M1692</guid>
      <dc:creator>Fabrico</dc:creator>
      <dc:date>2024-01-23T02:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3656288#M1697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Can you please try to use the utcNow() function with custom formatting in Fabric Data Factory:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Instead of relying on the pre-formatted date time, you can use the utcNow() function within your expression to generate the current date and time in UTC. Then, use string manipulation functions like substring and concat to format it according to your requirement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;@utcNow('yyyy-MM-ddThh:mm:ss') + '+00:00'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 10:00:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3656288#M1697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-24T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3658191#M1701</link>
      <description>&lt;P&gt;Thanks for your reply, I've tried formatting the date in a number of different ways but Fabric/Data Factory seems to be automatically converting it into a Zulu time before passing it to the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look at the Input criteria after running the Pipeline, here's what's now showing for that value;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I hardcode a datetime in there it also converts it to Zulu;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I wrap that hardcoded datetime to change it to a literal string then it works fine.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also previously tried wrapping the Dynamic value with literal strings but it always seems to convert the datetime before understanding it's a literal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling to understand why we're given the ability to format the date in the Dynamic Value box if Data Factory is just going to change it to whatever it wants anyway...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 22:04:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3658191#M1701</guid>
      <dc:creator>Fabrico</dc:creator>
      <dc:date>2024-01-24T22:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3665821#M1717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Apologies for the issue you have been facing.&amp;nbsp;&amp;nbsp;If its a bug, we will definitely would like to know and properly address it.&lt;/P&gt;
&lt;P&gt;Please go ahead and raise a support ticket to reach our support team: &lt;A href="https://support.fabric.microsoft.com/en-IN/support/" target="_blank" rel="noopener"&gt;support-ticket-link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After creating a Support ticket please provide the ticket number as it would help us to track for more information.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 08:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3665821#M1717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T08:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3668314#M1724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response i&lt;/SPAN&gt;&lt;SPAN&gt;f you got a chance to create support ticket, please provide the ticket number as it would help us to track for more information.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 13:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3668314#M1724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-30T13:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3671378#M1734</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Let me start with it was a hard nut to crack&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , took me few hours . This is what worked for me .&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;@&lt;SPAN&gt;formatDateTime(utcnow(),&lt;SPAN&gt;'yyyy-MM-ddTHH:mm:ss zzz'&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mat-dialog-title-127" class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;Output
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" role="text" aria-label=""&gt;{ "name": "Change Date format", "value": "&lt;STRONG&gt;&lt;STRONG&gt;2024-01-31T22:26:37 +00:00" }&lt;/STRONG&gt;&lt;/STRONG&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;BR /&gt;Himanshu&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 22:29:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3671378#M1734</guid>
      <dc:creator>HimanshuS-msft</dc:creator>
      <dc:date>2024-01-31T22:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3674881#M1742</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="668412" data-lia-user-login="Fabrico" class="lia-mention lia-mention-user"&gt;Fabrico&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others .&lt;BR /&gt;If you have any question relating to the current thread, please do let us know and we will try out best to help you.&lt;BR /&gt;In case if you have any other question on a different issue, we request you to open a new thread . &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 07:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3674881#M1742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-02T07:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Value Date formatting</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3678765#M1754</link>
      <description>&lt;P&gt;This solved the problem, thanks for your efforts!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 21:47:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Dynamic-Value-Date-formatting/m-p/3678765#M1754</guid>
      <dc:creator>Fabrico</dc:creator>
      <dc:date>2024-02-04T21:47:31Z</dc:date>
    </item>
  </channel>
</rss>

