<?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: Converting a number to a date (yyyy/mm/dd hh:mm) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625584#M20275</link>
    <description>&lt;P&gt;Here is the formula,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date DMY(&lt;BR /&gt;Num( Substr( :date, 7, 2 ) ),&lt;BR /&gt;Num( Substr( :date, 5, 2 ) ),&lt;BR /&gt;Num( Substr( :date, 1, 4 ) ) ) +&lt;BR /&gt;60 * 60 * Num( Word( 2, :date, " :" ) ) +&lt;BR /&gt;60 * Num( Word( -1, :date, " :" ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this once&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 11:35:58 GMT</pubDate>
    <dc:creator>AnilReddy</dc:creator>
    <dc:date>2020-02-18T11:35:58Z</dc:date>
    <item>
      <title>Converting a number to a date (yyyy/mm/dd hh:mm)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625568#M20272</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm pulling data from a database to load into another database. The file spec I've been given says the date I need to provide be in yyyy/mm/dd hh:mm format.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;The date field I'm pulling is in SQL Server and it's a datetime field, but from the SAS library side of things it shows as "Number". How can I have it export to my Excel export as a date, and in the yyyy/mm/dd hh:mm format? (e.g. 2019/04/01 00:00)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 10:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625568#M20272</guid>
      <dc:creator>EmmanuelCamden</dc:creator>
      <dc:date>2020-02-18T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a number to a date (yyyy/mm/dd hh:mm)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625584#M20275</link>
      <description>&lt;P&gt;Here is the formula,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date DMY(&lt;BR /&gt;Num( Substr( :date, 7, 2 ) ),&lt;BR /&gt;Num( Substr( :date, 5, 2 ) ),&lt;BR /&gt;Num( Substr( :date, 1, 4 ) ) ) +&lt;BR /&gt;60 * 60 * Num( Word( 2, :date, " :" ) ) +&lt;BR /&gt;60 * Num( Word( -1, :date, " :" ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this once&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 11:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625584#M20275</guid>
      <dc:creator>AnilReddy</dc:creator>
      <dc:date>2020-02-18T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a number to a date (yyyy/mm/dd hh:mm)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625593#M20278</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/312680"&gt;@EmmanuelCamden&lt;/a&gt;: you do know that sas stores dates, times and datetimes as numbers and that formats are used to display the values in a human-readable form?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Converting-a-number-to-a-date-yyyy-mm-dd-hh-mm/m-p/625593#M20278</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-02-18T12:31:50Z</dc:date>
    </item>
  </channel>
</rss>

