# NOT RUN {
format_datetime("yyyy/mm/dd")
# Very hard to remember all these characters:
format(Sys.time(), "%a %b %d %Y %X")
# Easy to remember and write the same as above:
format(Sys.time(), format_datetime("ddd mmm dd yyyy HH:MM:ss"))
# }
Run the code above in your browser using DataLab