Get first date of week from provided date

I want to pass a date object into a function and determine what the first date of that week was.

Example: If I pass in today's date (2009/06/24) I want the function to return what the first date of this week was, i.e. Sunday's date was 2009/06/21 so it must return that.

Anyone know of any standard javascript function that does that? Thanks

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.