pub fn date_to_day_number_in_month(date: i64) -> u32