add helper functions for formating dates

fixes #21