RosettaCodeData/Task/Date-format/R/date-format.r

4 lines
75 B
R

now <- Sys.time()
strftime(now, "%Y-%m-%d")
strftime(now, "%A, %B %d, %Y")