Get first date of week from provided date

后端 未结 1 1054
灰色年华
灰色年华 2021-01-25 03:08

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

相关标签:
1条回答
  • 2021-01-25 03:14

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

    0 讨论(0)
提交回复
热议问题