Get the week start date and week end date from week number(从周数获取周开始日期和周结束日期)
问题描述
我有一个查询数据库中成员的结婚日期.
I have a query that counts member's wedding dates in the database.
如何计算结果集中表示每周的开始和结束时间?
How do I work out when the start and end of each week represented in the result set?
推荐答案
您可以找到星期几并在天上添加日期以获取开始日期和结束日期..
You can find the day of week and do a date add on days to get the start and end dates..
不过,您可能还想考虑从日期中去除时间.
You probably also want to look at stripping off the time from the date as well though.
这篇关于从周数获取周开始日期和周结束日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!