|
-
January 30th, 2007, 12:35 AM
#4
Re: How do I manipulate with the weeks?
If I understand you correctly, you want to determine Monday and / or Thursday ....
If that's the case, you can use the WeekDay function like this :
Code:
Dim MyWeekDay As Integer 'get the week day number
MyWeekDay = Weekday(DateTime.Today) 'get the current weekday
MessageBox.Show(MyWeekDay.ToString())
Important thing to note here, is that if your firstday of the week is Sunday, it will return 2 for Monday and 5 for Thursday. If your first day of the week is set to Monday, then of course it will return 1 for Monday, and 4 for Thursday.
Does this help ¿
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|