I am trying to convert the format of the dates from yyyy-mm-dd
to dd-mm-yyyy
format. For example:
D <- "06.12.2012"
D <- as.Date(D, "%d.%m.%Y")
D
# [1] "2012-12-06"
How can I convert it to "06-12-2012"?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…