DateTime Setting A Specifed Week
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Heres one for you all. I need to get info out of the data base by status and the current week. This is not a problem except for that the Week needs to begin on Thursday at 5:00pm and end on Thursday at 4:59pm. I suppose my Question is how do I set this time as my week?
-
Heres one for you all. I need to get info out of the data base by status and the current week. This is not a problem except for that the Week needs to begin on Thursday at 5:00pm and end on Thursday at 4:59pm. I suppose my Question is how do I set this time as my week?
I would use my http://www.codeproject.com/KB/cs/LibTim_DateTruncate.aspx[^] Given a date, I'd truncate it to the previous Thursday, set the time to 17:00, and then set another DateTime to that plus seven days.