WLJS LogoWLJS Notebook

CurrentDate

CurrentDate[gran] gives the current date of the specified granularity type gran.

CurrentDate[date,gran] gives the date of the given granularity that includes the specified date.

CurrentDate[] gives the instant corresponding to the current date.

Examples

Get the current month:

CurrentDate["Month"]

Get the current year:

CurrentDate["Year"]

Please visit the official Wolfram Language Reference for more details.

On this page