added a date convertor