date_picker: date_picker

Description Usage Arguments Value Note Author(s) See Also

View source: R/date_picker.r

Description

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.

Usage

1
date_picker(type = "default")

Arguments

type

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)

Value

the.date returns a date in the format "YYYY-MM-DD"

Note

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.

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other date functions: chron2datestamp, convert.datecodes, dayofyear, get.day, get_day


Beothuk/bio.utilities documentation built on May 5, 2019, 1:39 p.m.