The datetime values
must be in the following form:
ddmmmyy or
ddmmmyyyy, followed by
a blank or special character, followed by
hh:mm:ss.ss (the time):
is an integer between
01 and 31 that represents the day of the month.
is the first three
letters of the month name.
is a two-digit or four-digit
integer that represents the year.
is an integer between
00 and 23 that represents hours.
is an integer between
00 and 59 that represents minutes.
is the number of seconds
ranging from 00–59 with the fraction of a second following
the decimal point.
DATETIME
w. requires values for both the date and the
time. However, the
ss.ss portion
is optional.
Note: SAS
interprets a two-digit year as belonging to the 100-year span that
is defined by the YEARCUTOFF= system option.
Note: SAS can read time values
with AM and PM in them.