better formating of dates