How to Get the Current Date in R

04.24.2021

In this article, we will learn how to get the current date in R. R provides a build in method called Sys.Date() which returns a date object with the current date.

today = Sys.Date()

print(today)

# [1] "2021-04-21"