Skip to main content

month

Function month 

Source
pub fn month(params: &[Value]) -> NativeResult
Expand description

Returns the month portion of a supplied Datetime as a Value::Number.

  • Declaration: month(datetime: Number): Number

ยงErrors

Will return NativeError::WrongParameterCount if there is a mismatch in the supplied parameters. Will return NativeError::WrongParameterType if the the supplied parameters have the wrong type.