Added method to set date format for start and end dates
add feature to specify a date format for start and end dates