This commit is contained in:
Muhammad Shahzad
2024-06-08 05:42:42 +05:00
parent cfcd4e1e98
commit 55a289e729
8 changed files with 328 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ function changeDateFormat(dateFormat) {
if (dateFormat) {
const [datePart, timePart] = dateFormat.split(' ');
const [year, month, day] = datePart.split('-');
const formattedDate = `${parseInt(month)}-${parseInt(day)}-${year}`;
// const formattedDate = `${parseInt(month)}-${parseInt(day)}-${year}`;
return `${formattedDate} ${timePart}`;
}
return dateFormat;