Open in app
Home
Notifications
Lists
Stories

Write
Jazz Celaya
Jazz Celaya

Home

Feb 25, 2021

Week number of the year with JS (Starting on Sundays)

So, the other day I ran into the need of knowing what week of the year a date was, using JavaScript, without installing any library, starting on Sundays. I wanted to share what we came up with, modifying this Stack Overflow post, in case it is of some use to someone. Hope it helps.

Javascript Tips

1 min read

Week number of the year with JS (Starting on Sundays)

So, the other day I ran into the need of knowing what week of the year a date was, using JavaScript, without installing any library, starting on Sundays. I wanted to share what we came up with, modifying this Stack Overflow post, in case it is of some use to someone.

Hope it helps.

Jazz Celaya

Jazz Celaya

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable