date.mdy(sdate, weekday=F)
sdate
| a Julian date value, as returned by the mdy.date function, number of days since 1/1/1960. |
weekday
| if TRUE, then the returned list also will contain the day of the week. Sunday=1, Saturday=7. |
temp <- sas.mdy(sas.date(month, day, year)) if (temp\$day != day) .. #Check for illegal dates, such as 29 Feb in a non leap year