1

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

StevenMcD
  • 17,262
  • 11
  • 42
  • 54

1 Answers1

2

found the answer on this question: How do I get the first day of the previous week from a date object in JavaScript?

Community
  • 1
  • 1
StevenMcD
  • 17,262
  • 11
  • 42
  • 54