<?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: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4022009#M4358</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this may have something to do with the date/time format of utcnow().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try changing utcnow () to now ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@formatDateTime(Now(),'yyyy-MM-ddTHH:mm:ss')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 01:05:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-05T01:05:05Z</dc:date>
    <item>
      <title>Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4021266#M4349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm implementing a data pipeline and I'm using a copy activity adding a custom datetime column to save in the destination the load data date.&lt;/P&gt;&lt;P&gt;For this column I'm using this expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ss')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that returns&amp;nbsp;an undesidered AM/PM indicator.&lt;/P&gt;&lt;P&gt;Viewing the input information of the related Fabric data pipeline I can see this:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;but in the Fabric lakehouse I can see this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'd like to show the time referring to the 24-hours clock.&lt;/P&gt;&lt;P&gt;Any helps to me, please? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 20:46:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4021266#M4349</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-02T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4022009#M4358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this may have something to do with the date/time format of utcnow().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try changing utcnow () to now ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@formatDateTime(Now(),'yyyy-MM-ddTHH:mm:ss')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:05:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4022009#M4358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T01:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4025284#M4398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I obtain this error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also writing Now().&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 13:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4025284#M4398</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-04T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4025852#M4401</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In an expression, HH indicates the 24-hour format, not the 12-hour format.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;If you still see AM/PM indicators, it may be due to the way data is interpreted or displayed in the Fabric lakehouse.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;I suggest you check the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data types: Make sure that the columns in the Fabric lakehouse are set to date-time types that support 24-hour formats.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;Pipeline configuration: Carefully review the Settings of the replication activity to ensure that there are no conversions or Settings that change the date-time format.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 01:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4025852#M4401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T01:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4026423#M4415</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;it seems your Lakehouse column is text type (ABC).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want the Lakehouse column to be text type or datetime type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you actually want it to be text type, could you write the code like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'yyyy-MM-dd HH:mm:ss'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Only change is to remove the T. Just to try if this changes something).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Lakehouse column was datetime type, maybe your local settings on the computer or web browser determines how the Lakehouse explorer displays the values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4026423#M4415</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-05T06:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027106#M4426</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add a custom datetime column in a copy activity to add this data to the source data to copy in a lakehouse; so, it should be the copy activity to establish automatically the right data type for the destination datetime column.&lt;/P&gt;&lt;P&gt;It is correct to use 'HH' in uppercase to obtain a time that refers&amp;nbsp;to a 24-hours clock; writing&amp;nbsp;'yyyy-MM-dd&lt;STRONG&gt;T&lt;/STRONG&gt;HH:mm:ss' with or without the T letter is the same thing.&lt;/P&gt;&lt;P&gt;It seems that I've solved at least partially, perhaps for a Fabric update.&lt;/P&gt;&lt;P&gt;I think that the copy activity should establish the right data type for the columns of the destination lakehouse table, if it doesn't exist. The formatDateTime function write a varchar(8000) column into a lakehouse and not a datetime/timestamp column and this is an undesirable behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027106#M4426</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-05T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027286#M4430</link>
      <description>&lt;P&gt;Have you tried just using this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;@utcNow()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps this creates a date/time column in the Lakehouse table.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:12:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027286#M4430</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-05T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027318#M4431</link>
      <description>&lt;P&gt;I can make it work (get date or date/time data type) by doing like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mapping:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is now a date/time column in the Lakehouse table (but still displaying PM symbol).&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;In the SQL Analytics Endpoint it is not displaying AM/PM. There it is being displayed in 24 hour-format, and with higher precision (microsecond, i.e. six digits behind the second).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess the AM/PM format is just the display format which is being used in the Lakehouse explorer. Unless anyone knows how to change that display format (maybe some kind of regional settings).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of Lakehouse Explorer:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Same data viewed in SQL Analytics Endpoint:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:47:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027318#M4431</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-05T15:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting a custom datetime colums referring to a 24-hours clock in a copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027451#M4433</link>
      <description>&lt;P&gt;Doing New mapping, the dynamic mapping would be lost.&lt;/P&gt;&lt;P&gt;New mapping means custom mapping.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Formatting-a-custom-datetime-colums-referring-to-a-24-hours/m-p/4027451#M4433</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2024-07-05T16:47:00Z</dc:date>
    </item>
  </channel>
</rss>

