<?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 yyyy-mm-dd to mm/dd/yyyy in DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252780#M6813</link>
    <description>&lt;P&gt;You're actually correct, except it keeps it as a Character type when it is preferred to keep a date in Numeric. &amp;nbsp;So what I'm left with is: &amp;nbsp; OutDate = INPUT(InDate,mmddyys10.) &amp;nbsp; but that's generating an error for me and so I'm back to square one.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 18:33:57 GMT</pubDate>
    <dc:creator>Daylon_Hunt</dc:creator>
    <dc:date>2016-02-26T18:33:57Z</dc:date>
    <item>
      <title>Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252577#M6799</link>
      <description>&lt;P&gt;I'm working on a job and need to convert a character date (yyyy-mm-dd) from a source table over to a "mm/dd/yyyy" format in the target table. &amp;nbsp;I'm not saavy enough yet to make this edit in the code, so I'm trying to do everything in the Expression Builder for now until I'm a little more well versed.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 23:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252577#M6799</guid>
      <dc:creator>Daylon_Hunt</dc:creator>
      <dc:date>2016-02-25T23:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252649#M6804</link>
      <description>&lt;P&gt;I think that two date functions will do it for you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OutDate = put(input(InDate, &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;yymmdd10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;), &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;mmddyys10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 03:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252649#M6804</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-02-26T03:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252668#M6808</link>
      <description>The input() is working. But it's not a best practice to store dates as char. They are morw complicated to handle, and does rarely work with exteenal dbms/applications. Hence skip the put().</description>
      <pubDate>Fri, 26 Feb 2016 06:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252668#M6808</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-26T06:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252736#M6810</link>
      <description>&lt;P&gt;Works perfect Tom, thank you kindly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252736#M6810</guid>
      <dc:creator>Daylon_Hunt</dc:creator>
      <dc:date>2016-02-26T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252751#M6811</link>
      <description>&lt;P&gt;Actually, that's giving me the wrong digits for the year. &amp;nbsp;For example, a "June 29 2010" date is coming out like: 06/29/20&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252751#M6811</guid>
      <dc:creator>Daylon_Hunt</dc:creator>
      <dc:date>2016-02-26T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252764#M6812</link>
      <description>&lt;P&gt;That's REALLY weird! Unfortunately, I don't have DI Studio available, I just mocked this up in Base SAS. If I run this program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Dates;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;InDate = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'2010-06-29'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;OutDate = put(input(InDate, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;yymmdd10.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;), &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;mmddyys10.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;InDate&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;OutDate&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2010-06-29&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;06/29/2010&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 17:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252764#M6812</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-02-26T17:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252780#M6813</link>
      <description>&lt;P&gt;You're actually correct, except it keeps it as a Character type when it is preferred to keep a date in Numeric. &amp;nbsp;So what I'm left with is: &amp;nbsp; OutDate = INPUT(InDate,mmddyys10.) &amp;nbsp; but that's generating an error for me and so I'm back to square one.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252780#M6813</guid>
      <dc:creator>Daylon_Hunt</dc:creator>
      <dc:date>2016-02-26T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252784#M6814</link>
      <description>&lt;P&gt;Well if the character string has the year first then trying to read it using MMDDYY10. informat will of course generate an error. There is no month number 2009! &amp;nbsp;Use YYMMDD10. informat (note do not need to specify the N,S,D letter in the INFORMAT that you would need in the FORMAT).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252784#M6814</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-02-26T18:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting yyyy-mm-dd to mm/dd/yyyy in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252786#M6815</link>
      <description>&lt;P&gt;Ok, it's for sure solved this time. &amp;nbsp;Keeping it in a Numeric type and using the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OutDate = INPUT(InDate , yymmdd10.) &amp;nbsp;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;A Format of "mmddyy10."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whew! &amp;nbsp;Thank you both!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-yyyy-mm-dd-to-mm-dd-yyyy-in-DI-Studio/m-p/252786#M6815</guid>
      <dc:creator>Daylon_Hunt</dc:creator>
      <dc:date>2016-02-26T18:58:03Z</dc:date>
    </item>
  </channel>
</rss>

