added date formatting helper method