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.
Sys.Date()
today = Sys.Date() print(today) # [1] "2021-04-21"
Previous
Next