delete functionality and export date time in excel format