Skip to content

Instantly share code, notes, and snippets.

@jfreeze
Created April 15, 2014 14:16
Show Gist options
  • Save jfreeze/10736240 to your computer and use it in GitHub Desktop.
Save jfreeze/10736240 to your computer and use it in GitHub Desktop.
Date Formatting
{{y,m,d},{_,_,_}} = :calendar.universal_time
to_string(List.flatten(:io_lib.fwrite("~2.2.0w/~2.2.0w/~w", [m,d,y])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment