pub fn dayofweek(date: PanDate) -> i64
Returns the day of week for date (Sunday = 0, Saturday = 6).
date