added support for changing the date format