general function for date format and daterange format handling

* moved available formats to options class
* added date formats for month and day