Convert from Julian dates to month, day, and year.

Usage

date.mdy(sdate, weekday=F)

Arguments

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.

Examples

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


[Package Contents]