re-formate wth standard.js

This commit is contained in:
Suryapratap Singh
2021-08-23 12:34:17 +05:30
parent cd26e97514
commit 63c7732dda

View File

@ -56,7 +56,7 @@ const DateToDay = (date) => {
// Apply the algorithm shown above
const weekDay = Math.abs((day + Math.floor((2.6 * calcMonthList[month]) - 0.2) - (2 * century) + yearDigit + Math.floor(yearDigit / 4) + Math.floor(century / 4)) % 7)
// return the weekDay name.
return daysNameList[weekDay];
return daysNameList[weekDay]
}
// Example : DateToDay("18/12/2020") => Friday