change date Excel file

This commit is contained in:
AmirHossein Mahmoodi
2024-01-23 15:55:48 +03:30
parent bb52f4b60d
commit c7c9d110f1

View File

@@ -19,7 +19,7 @@ const ExcelExport = () => {
auth: true,
requestOptions: {responseType: 'blob'}
}).then((response) => {
const filename = `گزارش عملکرد_${moment().format('jYYYY_jMM_jDD')}.xlsx`;
const filename = `گزارش عملکرد_${moment().format('jDD_jMM_jYYYY')}.xlsx`;
FileSaver.saveAs(response.data, filename);
}).catch(() => {
}).finally(() => {