Skip to main content

fn_date

Function fn_date 

Source
pub fn fn_date(args: &[Expr], ctx: &mut Evaluator<'_>) -> Result<CellValue>
Expand description

DATE(year, month, day) - constructs a date serial number.

Arguments are truncated toward zero. Years below 1900 are offset by 1900; month and day overflow roll into later or earlier periods. Non-finite arguments, arguments outside the i32 range, a year outside 0..=9999, or a result after 9999-12-31 return #NUM!.