<?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: Daytime Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/484000#M125583</link>
    <description>&lt;P&gt;The documentation for the picture statement in proc format is found here:&amp;nbsp;&lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Aug 2018 11:05:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-04T11:05:10Z</dc:date>
    <item>
      <title>Daytime Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483994#M125579</link>
      <description>How to Convert DATETIME19. TO dd/mm/YYYY HH:MM:SS in Sas select</description>
      <pubDate>Sat, 04 Aug 2018 10:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483994#M125579</guid>
      <dc:creator>FLINT</dc:creator>
      <dc:date>2018-08-04T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Daytime Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483995#M125580</link>
      <description>&lt;P&gt;You can create a custom picture format with proc format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But personally, I would advise to follow the ISO standards and use one of the e8601 formats provided by SAS OOTB.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 10:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483995#M125580</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-04T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Daytime Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483997#M125581</link>
      <description>Please help me with some sample text.I want to convert 03AUG2018:18:09:18&lt;BR /&gt;to&lt;BR /&gt;03/08/2018 18:09 .this is one of the values in column&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Aug 2018 10:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/483997#M125581</guid>
      <dc:creator>FLINT</dc:creator>
      <dc:date>2018-08-04T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Daytime Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/484000#M125583</link>
      <description>&lt;P&gt;The documentation for the picture statement in proc format is found here:&amp;nbsp;&lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 11:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/484000#M125583</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-04T11:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Daytime Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/484508#M125795</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212379"&gt;@FLINT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Please help me with some sample text.I want to convert 03AUG2018:18:09:18&lt;BR /&gt;to&lt;BR /&gt;03/08/2018 18:09 .this is one of the values in column&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is no "conversion". Display formats are only rules for how a value&amp;nbsp; is displayed. And the value must be correct. To change a TEXT value you either 1) create an actual numeric datetime value and use an appropriate format or 2) Write lots of ugly code to parse and put pieces together. An INPUT with the correct INFORMAT and a Put statement would possibly be acceptable. Most of the time is really a much better idea to create a date or datetime variable as then there are many more options on manipulation and display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
picture dtfixed 
low-high = '%0m/%0d/%Y %0H:%0M:%0S'  (datatype=datetime)
;
run;

data _null_;
   x=input('15Feb2017:01:09:13',datetime18.);
   put x=  dtfixed. x= dtfixed16.;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is one way. Note that the number of displayed characters, as with other formats can be set by specifying the width in the format statement. You chose whether to display the seconds or not, but the value is there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really must use that stupid Micro$lop date time appearance. And comparisons do not use formatted values.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Daytime-Format/m-p/484508#M125795</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-06T19:45:08Z</dc:date>
    </item>
  </channel>
</rss>

