Add support for formatting datetimes

fixes #63 on github
attempts to address #49 on github