Description Usage Arguments Value Note Author(s) See Also
This function presents successive picklists for year, month and day, and returns a date. The original purpose of this function is to provide a means to select valid dates for use in modifying SQL queries on demand.
1 | date_picker(type = "default")
|
|
valid values include "presets" (for quickly getting the date from a year ago, 6 months ago, etc), "default" or "start" (any time the user cancels the dialog boxes, it defaults to the earliest date corresponding to the users selections), or "end" (any time the user cancels the dialog boxes, it defaults to the latest available date corresponding to the user's selections) |
the.date
returns a date in the format "YYYY-MM-DD"
Only valid days for each month and year combo are presented. Most complexity is due to the potential for users to click cancel rather than choose valid options. Cancelling at any point fails gracefully, and results will depend on the selected parameter.
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other date functions: chron2datestamp
,
convert.datecodes
, dayofyear
,
get.day
, get_day
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.