title: Get the user's current date and time in R/Shiny
body: <p>I am building a shiny app and hosting it on the server. There are date and time inputs. The default value is Sys.Date(). Now when the user accesses it, the default value is taken as server date and time rather than the users. </p>
  
  <p>Please tell me how can I get the user's current time and date and use them as default values into my input box. </p>
  
  <p>Current input scenario:</p>
  
  <pre><code>dateInput("dateto", "Date To:", format = "mm/dd/yyyy", value = Sys.time()),
  textInput("dateto_hour", "HH:MM",
                  value = gsub("(.*):.*","\\1",format(Sys.time(), "%X")))
  </code></pre>