changed date format handling to be more customizable
changed date format handling to be more customizable