pub fn validate_date(y: i32, m: u32, d: u32) -> bool
Validate whether the given year, month and day form a legal date.