Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

DPassarelli/number-of-weeks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number-of-weeks

An algorithm that calculates the number of weeks (full or partial) within a given month, based on Sunday being the first day of the week.

vanilla.js shows how this can be done using plain JS (no dependencies).

luxon.js shows how this can be done using luxon.

Made for Alex and Jon.

About

Calculates the number of weeks in a given month, assuming each week starts on a Sunday.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published