Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (50.2k points)
Let's say for instance I am having a very huge amount of dataset with millions of columns. One of the column has Dates such as "3/28/2020" (mm/dd/YYYY) format.

For my analysis, I need a format (dd/mm/YYYY)

How can I do that?

1 Answer

0 votes
by (108k points)

In R programming, you can easily convert to standard date class and then use format to get data in desired format.

format(as.Date('3/28/2020', '%m/%d/%Y'), '%d/%m/%Y')

#[1] "28/03/2020"

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jan 28, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
asked Dec 4, 2020 in SQL by Appu (6.1k points)

Browse Categories

...