<?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 DS2 Example Code - Datetime UTC in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/360685#M441</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using RTDM 6.4, I need to create a new DATE variable to write the correct sysdate (Timezone: Europe/Rome) on a staging table. I must write it in a TIMESTAMP field mapping the related insert viariable of an insert data process. I tried to use the "Today's Date and Time" Out of the Box variable but i've seen that it writes always the UTC datetime. I also tried to use the following conversion functions in the calculated variable editor but the date written on DB is always in UTC:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"GETDATEINTIMEZONE(&amp;lt;&amp;lt;DateAndTime.today&amp;gt;&amp;gt;,'Europe/Rome')"&lt;/LI&gt;&lt;LI&gt;TODAY('Europe/Rome')&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any suggestions about&amp;nbsp;the calculation of a new variable, even in DS2 code, to write the correct italian sysdate&amp;nbsp;also respect the change from solar to legal time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 11:26:19 GMT</pubDate>
    <dc:creator>carlialessandro</dc:creator>
    <dc:date>2017-05-23T11:26:19Z</dc:date>
    <item>
      <title>DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/360685#M441</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using RTDM 6.4, I need to create a new DATE variable to write the correct sysdate (Timezone: Europe/Rome) on a staging table. I must write it in a TIMESTAMP field mapping the related insert viariable of an insert data process. I tried to use the "Today's Date and Time" Out of the Box variable but i've seen that it writes always the UTC datetime. I also tried to use the following conversion functions in the calculated variable editor but the date written on DB is always in UTC:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"GETDATEINTIMEZONE(&amp;lt;&amp;lt;DateAndTime.today&amp;gt;&amp;gt;,'Europe/Rome')"&lt;/LI&gt;&lt;LI&gt;TODAY('Europe/Rome')&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any suggestions about&amp;nbsp;the calculation of a new variable, even in DS2 code, to write the correct italian sysdate&amp;nbsp;also respect the change from solar to legal time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 11:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/360685#M441</guid>
      <dc:creator>carlialessandro</dc:creator>
      <dc:date>2017-05-23T11:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361232#M449</link>
      <description>Alessandro - &lt;BR /&gt;&lt;BR /&gt;Can you please clarify if this is something you're doing via DS2 or via a data insert process?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 24 May 2017 14:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361232#M449</guid>
      <dc:creator>shill</dc:creator>
      <dc:date>2017-05-24T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361238#M450</link>
      <description>&lt;P&gt;Hi Shill, thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing it via a data insert process, mapping a date variable of my table with the&amp;nbsp;&lt;SPAN&gt;"Today's Date and Time" preconfigured SAS variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13874iC59AC2D64D3F659C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Data e ora odierna.PNG" title="Data e ora odierna.PNG" /&gt;</description>
      <pubDate>Wed, 24 May 2017 14:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361238#M450</guid>
      <dc:creator>carlialessandro</dc:creator>
      <dc:date>2017-05-24T14:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361691#M451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to explain better,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to know if there is a way, building a DS2 process, to create&amp;nbsp;a date variable to be mapped in the data insert process. I need this date variable to have&amp;nbsp;the correct italian time at every runtime( in DST and standard time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 17:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361691#M451</guid>
      <dc:creator>carlialessandro</dc:creator>
      <dc:date>2017-05-25T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361695#M452</link>
      <description>&lt;P&gt;Have you applied the hotfix and configuration options from this &lt;A href="http://support.sas.com/kb/55/831.html" target="_self"&gt;SAS Note&lt;/A&gt;? You shouldn't need a DS2 process - if all your dates are in CET, there won't be any conversion needed once that's in place and set as your default TZ. If you have dates from other TZ's, then the calculated item functions you mentioned would be appropriate to convert it to CET&amp;nbsp;as the input variable to a data process (which will now, per this fix, write it in CET).&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 17:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361695#M452</guid>
      <dc:creator>shill</dc:creator>
      <dc:date>2017-05-25T17:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: DS2 Example Code - Datetime UTC</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361897#M453</link>
      <description>&lt;P&gt;Thank you so much for this SAS Note!&amp;nbsp;I'll&amp;nbsp;try to install the Hotfix and i'll let you know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 08:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/DS2-Example-Code-Datetime-UTC/m-p/361897#M453</guid>
      <dc:creator>carlialessandro</dc:creator>
      <dc:date>2017-05-26T08:11:25Z</dc:date>
    </item>
  </channel>
</rss>

