<?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 Replacing year in the datetime24.3 in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854981#M2745</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to SAS, can you please suggest the best way to replace on the year portion of a date with datetime24.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example date in column dd_date is 01OCT2022: 15:00:28.000. I only need to change 2022 to 2020&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2023 21:48:19 GMT</pubDate>
    <dc:creator>2023newsas</dc:creator>
    <dc:date>2023-01-21T21:48:19Z</dc:date>
    <item>
      <title>Replacing year in the datetime24.3</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854981#M2745</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am new to SAS, can you please suggest the best way to replace on the year portion of a date with datetime24.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example date in column dd_date is 01OCT2022: 15:00:28.000. I only need to change 2022 to 2020&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 21:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854981#M2745</guid>
      <dc:creator>2023newsas</dc:creator>
      <dc:date>2023-01-21T21:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing year in the datetime24.3</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854982#M2746</link>
      <description>&lt;P&gt;Assuming you have a numeric variable named DATETIME_VALUE that contains this date/time value, and you want to subtract two years, the INTNX command will do that. The format is irrelevant; if a variable contains date/time values, this works regardless of the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    new_value = intnx('dtyear',datetime_value,-2,'s');
    format new_value datetime24.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 22:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854982#M2746</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-21T22:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing year in the datetime24.3</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854984#M2748</link>
      <description>Hi there thank you very much!</description>
      <pubDate>Sat, 21 Jan 2023 22:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Replacing-year-in-the-datetime24-3/m-p/854984#M2748</guid>
      <dc:creator>2023newsas</dc:creator>
      <dc:date>2023-01-21T22:35:00Z</dc:date>
    </item>
  </channel>
</rss>

