#177: method to format dates