making configurable date format