Date format conversion

  1. Sometimes you want date as a dummy, sometimes you don't. Impossible to tell without a str(YOUR_OBJECT) and a model

Here's how to convert a single date

example <- now()

How to convert multiple dates depends on your object. Assuming it's a tibble with the column name datetime, all you have to do is

YourNewObject <- YourOldOblect %>% mutate(datetime = date(datetime)

A gentle admonition. Answers without complete information are likely to go unanswered. See FAQ: What's a reproducible example (`reprex`) and how do I do one?.