add date formatting

close #5