mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
re-formate wth standard.js
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user