bit of date formatting