x<-mondate("2010-6-30") # The middle of 2010
displayFormat(x) # "%Y-%m-%d"
displayFormat(x) <- "%m/%d/%Y"
x # x now displays as 06/30/2010
Run the code above in your browser using DataLab