Reading Date and Time Values | |
Reading Dates and Times Using
Informats |
DATETIMEw. Informat
The DATETIMEw. informat reads expressions that are composed of two parts, a date value and a time value, in the form: ddmmmyy hh:mm:ss.ss. |
General form, values read with DATETIMEw.
informat:
where
|
If you do not enter a value for ss.ss, SAS software assumes
a value of zero.
Here are some examples of the DATETIMEw. informat. Note that in the time value, delimiters are required to separate the values for hour, minutes, and seconds. |
Date and Time Expression | SAS Datetime Informat |
---|---|
30May00 10:03:17.2 | DATETIME18. |
30May2000/10:03 | DATETIME15. |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.