EVOLUTION-MANAGER
Edit File: dateRangeInput.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create date range input</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for dateRangeInput {shiny}"><tr><td>dateRangeInput {shiny}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create date range input</h2> <h3>Description</h3> <p>Creates a pair of text inputs which, when clicked on, bring up calendars that the user can click on to select dates. </p> <h3>Usage</h3> <pre> dateRangeInput( inputId, label, start = NULL, end = NULL, min = NULL, max = NULL, format = "yyyy-mm-dd", startview = "month", weekstart = 0, language = "en", separator = " to ", width = NULL, autoclose = TRUE ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>inputId</code></td> <td> <p>The <code>input</code> slot that will be used to access the value.</p> </td></tr> <tr valign="top"><td><code>label</code></td> <td> <p>Display label for the control, or <code>NULL</code> for no label.</p> </td></tr> <tr valign="top"><td><code>start</code></td> <td> <p>The initial start date. Either a Date object, or a string in <code>yyyy-mm-dd</code> format. If NULL (the default), will use the current date in the client's time zone.</p> </td></tr> <tr valign="top"><td><code>end</code></td> <td> <p>The initial end date. Either a Date object, or a string in <code>yyyy-mm-dd</code> format. If NULL (the default), will use the current date in the client's time zone.</p> </td></tr> <tr valign="top"><td><code>min</code></td> <td> <p>The minimum allowed date. Either a Date object, or a string in <code>yyyy-mm-dd</code> format.</p> </td></tr> <tr valign="top"><td><code>max</code></td> <td> <p>The maximum allowed date. Either a Date object, or a string in <code>yyyy-mm-dd</code> format.</p> </td></tr> <tr valign="top"><td><code>format</code></td> <td> <p>The format of the date to display in the browser. Defaults to <code>"yyyy-mm-dd"</code>.</p> </td></tr> <tr valign="top"><td><code>startview</code></td> <td> <p>The date range shown when the input object is first clicked. Can be "month" (the default), "year", or "decade".</p> </td></tr> <tr valign="top"><td><code>weekstart</code></td> <td> <p>Which day is the start of the week. Should be an integer from 0 (Sunday) to 6 (Saturday).</p> </td></tr> <tr valign="top"><td><code>language</code></td> <td> <p>The language used for month and day names. Default is "en". Other valid values include "ar", "az", "bg", "bs", "ca", "cs", "cy", "da", "de", "el", "en-AU", "en-GB", "eo", "es", "et", "eu", "fa", "fi", "fo", "fr-CH", "fr", "gl", "he", "hr", "hu", "hy", "id", "is", "it-CH", "it", "ja", "ka", "kh", "kk", "ko", "kr", "lt", "lv", "me", "mk", "mn", "ms", "nb", "nl-BE", "nl", "no", "pl", "pt-BR", "pt", "ro", "rs-latin", "rs", "ru", "sk", "sl", "sq", "sr-latin", "sr", "sv", "sw", "th", "tr", "uk", "vi", "zh-CN", and "zh-TW".</p> </td></tr> <tr valign="top"><td><code>separator</code></td> <td> <p>String to display between the start and end input boxes.</p> </td></tr> <tr valign="top"><td><code>width</code></td> <td> <p>The width of the input, e.g. <code>'400px'</code>, or <code>'100%'</code>; see <code><a href="reexports.html">validateCssUnit()</a></code>.</p> </td></tr> <tr valign="top"><td><code>autoclose</code></td> <td> <p>Whether or not to close the datepicker immediately when a date is selected.</p> </td></tr> </table> <h3>Details</h3> <p>The date <code>format</code> string specifies how the date will be displayed in the browser. It allows the following values: </p> <ul> <li> <p><code>yy</code> Year without century (12) </p> </li> <li> <p><code>yyyy</code> Year with century (2012) </p> </li> <li> <p><code>mm</code> Month number, with leading zero (01-12) </p> </li> <li> <p><code>m</code> Month number, without leading zero (1-12) </p> </li> <li> <p><code>M</code> Abbreviated month name </p> </li> <li> <p><code>MM</code> Full month name </p> </li> <li> <p><code>dd</code> Day of month with leading zero </p> </li> <li> <p><code>d</code> Day of month without leading zero </p> </li> <li> <p><code>D</code> Abbreviated weekday name </p> </li> <li> <p><code>DD</code> Full weekday name </p> </li></ul> <h3>Server value</h3> <p>A <a href="../../base/html/Dates.html">Date</a> vector of length 2. </p> <h3>See Also</h3> <p><code><a href="dateInput.html">dateInput()</a></code>, <code><a href="updateDateRangeInput.html">updateDateRangeInput()</a></code> </p> <p>Other input elements: <code><a href="actionButton.html">actionButton</a>()</code>, <code><a href="checkboxGroupInput.html">checkboxGroupInput</a>()</code>, <code><a href="checkboxInput.html">checkboxInput</a>()</code>, <code><a href="dateInput.html">dateInput</a>()</code>, <code><a href="fileInput.html">fileInput</a>()</code>, <code><a href="numericInput.html">numericInput</a>()</code>, <code><a href="passwordInput.html">passwordInput</a>()</code>, <code><a href="radioButtons.html">radioButtons</a>()</code>, <code><a href="selectInput.html">selectInput</a>()</code>, <code><a href="sliderInput.html">sliderInput</a>()</code>, <code><a href="submitButton.html">submitButton</a>()</code>, <code><a href="textAreaInput.html">textAreaInput</a>()</code>, <code><a href="textInput.html">textInput</a>()</code>, <code><a href="varSelectInput.html">varSelectInput</a>()</code> </p> <h3>Examples</h3> <pre> ## Only run examples in interactive R sessions if (interactive()) { ui <- fluidPage( dateRangeInput("daterange1", "Date range:", start = "2001-01-01", end = "2010-12-31"), # Default start and end is the current date in the client's time zone dateRangeInput("daterange2", "Date range:"), # start and end are always specified in yyyy-mm-dd, even if the display # format is different dateRangeInput("daterange3", "Date range:", start = "2001-01-01", end = "2010-12-31", min = "2001-01-01", max = "2012-12-21", format = "mm/dd/yy", separator = " - "), # Pass in Date objects dateRangeInput("daterange4", "Date range:", start = Sys.Date()-10, end = Sys.Date()+10), # Use different language and different first day of week dateRangeInput("daterange5", "Date range:", language = "de", weekstart = 1), # Start with decade view instead of default month view dateRangeInput("daterange6", "Date range:", startview = "decade") ) shinyApp(ui, server = function(input, output) { }) } </pre> <hr /><div style="text-align: center;">[Package <em>shiny</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> </body></html>