day to week

JavaScript
var d = 1 // Amount of days
console.log(d/7) // Logs amount of weeks
Source

Also in JavaScript: