The current
series gets today's year, month, or day,
returning just an integer. The last
series (including
yesterday
) returns a full Date
class for a recent date for
easily providing values to the from
input argument in other
functions. For custom dates, use componentsToDate
. To return today's
date in the proper format, call today
, which is a wrapper for
componentsToDate
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | currentDay()
currentMonth()
currentYear()
today()
yesterday()
lastWeek()
lastMonth()
lastYear()
componentsToDate(yr = currentYear(), mo = currentMonth(),
dy = currentDay())
|
Each of the current*
functions return an integer. last*
and componentsToDate
return a Date
class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.