<?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: Why this date variables are not converted into date9. format using datepart function ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104516#M29195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a New Zealander (Kiwi) living and working in Australia (Local nickname: Oz).&amp;nbsp; Nothing to do with being a wizard.&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 22:46:48 GMT</pubDate>
    <dc:creator>RichardinOz</dc:creator>
    <dc:date>2012-10-24T22:46:48Z</dc:date>
    <item>
      <title>Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104510#M29189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;Hi SAS Forum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;I wanted to convert these 3 date-related variables in the attached sas data set into date9. format.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;I tried this code with datepart function but an error messege pops up.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; want; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; J.have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Date_cancel &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Date_of_firs_deposit &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Account_date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; Date_cancel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =datepart(Date_cancel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; Date_of_firs_deposit= datepart (Date_of_firs_deposit);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; Account_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = datepart (Account_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: aqua; color: black; font-size: 11pt;"&gt;Error messege comes like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set J.have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Date_cancel date9. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Date_of_firs_deposit date9.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Account_date date9.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ______&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 484&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;NOTE 484-185: Format $DATE was not found or could not be loaded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_cancel=datepart(Date_cancel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_of_firs_deposit= datepart (Date_of_firs_deposit);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account_date= datepart (Account_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: aqua; color: black; font-size: 11pt;"&gt;Could anyone please help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;Mirisage&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 20:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104510#M29189</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-10-23T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104511#M29190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your account_date is a character variable. try the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set j.have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date_cancel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =datepart(Date_cancel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date_of_firs_deposit= datepart(Date_of_firs_deposit);&lt;/P&gt;&lt;P&gt;&amp;nbsp; _Account_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = input(scan(Account_date,1,' '),ddmmyy10.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Date_cancel&amp;nbsp;&amp;nbsp; Date_of_firs_deposit&amp;nbsp; _Account_date date9.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt; var _:;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 20:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104511#M29190</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-23T20:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104512#M29191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;Hi Linlin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;Many thanks. Your code works well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;Now only I realized the variable “Account_date” was a character variable and then it has to be treated differently. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;Its format was like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;31/12/2010 0:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;31/7/2010 0:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;28/2/2011 0:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;This means &lt;SPAN style="background: yellow;"&gt;DD/MM/YYYY&lt;/SPAN&gt; and then “time” (I do not know how to write the time format)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: lime; font-size: 11pt;"&gt;Question 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;In your code below, the informat was written as &lt;SPAN style="background: white; color: teal;"&gt;ddmmyy10. &lt;/SPAN&gt;&lt;SPAN style="background: white;"&gt;But it should have been&lt;SPAN style="color: teal;"&gt;&amp;nbsp; ddmmyyyy10. &lt;/SPAN&gt;as shown in yellow above. But it works. How come it worked? Could you please let me know time permitting?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: Arial; background: white; color: blue; font-size: 11pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt; H.have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; Date_cancel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =datepart(Date_cancel);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; Date_of_firs_deposit= datepart(Date_of_firs_deposit);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp; _Account_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = input(scan(Account_date,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: Arial;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: purple; font-size: 11pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: teal; font-size: 11pt;"&gt;ddmmyy10.&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: Arial; background: white; color: blue; font-size: 11pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt; Date_cancel&amp;nbsp;&amp;nbsp; Date_of_firs_deposit&amp;nbsp; _Account_date &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: teal; font-size: 11pt;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: blue; font-size: 11pt;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt; _:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: Arial;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: lime; color: black; font-size: 11pt;"&gt;Question 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;I had an “account_date” character variable in another data set&amp;nbsp; the form &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; font-size: 11pt;"&gt;5/23/2011 0:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: black; font-size: 11pt;"&gt;Then I have included informat as &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; color: teal; font-size: 11pt;"&gt;mmddyy10. &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; background: white; font-size: 11pt;"&gt;and it also worked&lt;SPAN style="color: teal;"&gt;. But it shuould have been written in the code as &lt;SPAN style="font-family: Arial; background: white; color: teal; font-size: 11pt;"&gt;mmddyyyy10.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: teal; background: white; font-size: 11pt; font-family: Arial;"&gt;How come my one also worked? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: teal; background: white; font-size: 11pt; font-family: Arial;"&gt;Thank you for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: teal; background: white; font-size: 11pt; font-family: Arial;"&gt;Mirisage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104512#M29191</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-10-24T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104513#M29192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DDMMYY and MMDDYY are names of formats.&amp;nbsp; The 10 on the end specifies the length, ie how many characters are written.&amp;nbsp; As only 8 characters are needed for the date information, the remaining 2 characters are used for delimiters, slashes in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104513#M29192</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-10-24T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104514#M29193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afterthought&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be expecting SAS format names to be like formats in Excel and some other languages where the "name" is really a template that specifies where data elements are placed, and any punctuation.&amp;nbsp; But you cans see from a SAS format name like DATE (as in DATE9.) where the result is like 24OCT2012 that SAS format names are not templates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104514#M29193</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-10-24T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104515#M29194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;I am curious what does "Oz" stand for?:smileysilly:&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104515#M29194</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-24T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104516#M29195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a New Zealander (Kiwi) living and working in Australia (Local nickname: Oz).&amp;nbsp; Nothing to do with being a wizard.&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 22:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104516#M29195</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-10-24T22:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why this date variables are not converted into date9. format using datepart function ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104517#M29196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Hi Richard in Oz and Linilin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Thank both of you very much for this elaboration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Now I am very much clear that SAS format names are not templates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Also good to know Oz stands for Aussie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt;Mirisage&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 9.5pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-this-date-variables-are-not-converted-into-date9-format/m-p/104517#M29196</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-10-28T17:22:46Z</dc:date>
    </item>
  </channel>
</rss>

