Closed rrodrigueznt closed 1 year ago
You can't ask timevis to return items in a specific format, but the string you get back can be parsed with {lubridate} (or in other ways). This question is out of scope for {timevis}, it's a general question in R about "how can I convert a datetime string to a different format?" - please use a more appropriate channel to find the answer to that question.
I googled it for you and it looks like this will work: format(lubridate::as_datetime(input$timeline01_window[1]), "%Y-%m-%d")
Hi! Can each item's start and end dates have a different format when retrieved from the widget? Based on some examples on this site, I'm playing with the code below, but I need help finding the way to format the start and end as, for instance, yyyy-mm-dd.
I get:
I want to get:
Thanks!