find day of the week from first date of the week of the year code example
Example: day to week
var d = 1 // Amount of days
console.log(d/7) // Logs amount of weeks
var d = 1 // Amount of days
console.log(d/7) // Logs amount of weeks