M module

Support.module:Date

Functions

Checks if a date is in the current month

Parameters

value : Date

The date to check

Returns

boolean

True if the date is in the current month, false otherwise

Checks if a date is in the current year

Parameters

value : Date

The date to check

Returns

boolean

True if the date is in the current year, false otherwise

Checks if a date is today

Parameters

value : Date

The date to check

Returns

boolean

True if the date is today, false otherwise

Checks if a date is in the past

Parameters

value : Date

The date to check

Returns

boolean

True if the date is in the past, false otherwise

Returns the current date

Returns

Date

The current date

Converts a date to an ISO date string (YYYY-MM-DD)

Parameters

value : Date

The date to convert

Returns

string

ISO date string in the format YYYY-MM-DD

Converts a Date to a string parameter Alias of toJSON().

Parameters

value : Date

The date to convert

Returns

string

ISO string representation of the date

Converts a Date to a URL query parameter

Parameters

value : Date

The date to convert

key : string

The key for the query parameter

Returns

string

URL query parameter in the form key=value