SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Date and Time Values
Reading Dates and Times Using Informats


DATEw. Informat

The DATEw. informat reads dates of the form 30May2000.


General form, values read with DATEw. informat:
ddmmmyy or ddmmmyyyy

where

  • dd is an integer from 01 to 31, representing the day
  • mmm is the first three letters of the month's name
  • yy or yyyy is the integer representing the year.


You may place blanks or other special characters between the day, month, and year, as long as you increase the width of the informat to include these delimiters. Here are some date expressions you can read using the DATEw. informat:


Date Expression SAS Date Informat
30May00 DATE7.
30May2000 DATE9.
30-May-2000 DATE11.



back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement