Click here to Skip to main content
16,006,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: random Pin
rzvme5-Feb-06 2:56
rzvme5-Feb-06 2:56 
AnswerRe: random Pin
Guffa5-Feb-06 3:24
Guffa5-Feb-06 3:24 
GeneralRe: random Pin
rzvme5-Feb-06 6:58
rzvme5-Feb-06 6:58 
GeneralRe: random Pin
Chatura Dilan5-Feb-06 15:21
Chatura Dilan5-Feb-06 15:21 
Questionhow to load,plot and work on maps. Pin
haripaddu4-Feb-06 23:13
haripaddu4-Feb-06 23:13 
AnswerRe: how to load,plot and work on maps. Pin
Colin Angus Mackay5-Feb-06 8:54
Colin Angus Mackay5-Feb-06 8:54 
QuestionHow to get the startdate and end-dates of the current week, or last week? Pin
Hiske Bekkering4-Feb-06 23:01
professionalHiske Bekkering4-Feb-06 23:01 
AnswerRe: How to get the startdate and end-dates of the current week, or last week? Pin
Dave Kreskowiak5-Feb-06 4:14
mveDave Kreskowiak5-Feb-06 4:14 
It's easy if you think about it and just look at the documentation for DateTime[^].

To get the date of the beginning of the week, all you need is the current date (Now), what the current day of the week is (Now.DayOfWeek), then just subtract the current day of the week from the current date (Now.AddDays(-Now.DayOfWeek)). To get the last date of the week, just add 6 days to the beginning of the week.
Dim currentDate As Date = Now()
Dim beginDate As Date = currentDate.AddDays(-currentDate.DayOfWeek)
Dim endDate As Date = beginDate.AddDays(6)



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: How to get the startdate and end-dates of the current week, or last week? Pin
Hiske Bekkering5-Feb-06 5:11
professionalHiske Bekkering5-Feb-06 5:11 
QuestionRead source code from webpage Pin
MIke24844-Feb-06 17:07
MIke24844-Feb-06 17:07 
AnswerRe: Read source code from webpage Pin
Dave Kreskowiak5-Feb-06 3:58
mveDave Kreskowiak5-Feb-06 3:58 
GeneralRe: Read source code from webpage Pin
MIke24845-Feb-06 5:15
MIke24845-Feb-06 5:15 
GeneralRe: Read source code from webpage Pin
Dave Kreskowiak5-Feb-06 7:45
mveDave Kreskowiak5-Feb-06 7:45 
QuestionFill a dataset Pin
ricgre4-Feb-06 16:40
ricgre4-Feb-06 16:40 
AnswerRe: Fill a dataset Pin
RichardBerry6-Feb-06 4:03
RichardBerry6-Feb-06 4:03 
QuestionHow to get the path for font folder Pin
Chatura Dilan4-Feb-06 16:10
Chatura Dilan4-Feb-06 16:10 
AnswerRe: How to get the path for font folder Pin
Dave Kreskowiak4-Feb-06 17:57
mveDave Kreskowiak4-Feb-06 17:57 
GeneralRe: How to get the path for font folder Pin
Chatura Dilan4-Feb-06 20:18
Chatura Dilan4-Feb-06 20:18 
GeneralRe: How to get the path for font folder Pin
Dave Kreskowiak5-Feb-06 2:43
mveDave Kreskowiak5-Feb-06 2:43 
GeneralRe: How to get the path for font folder Pin
Chatura Dilan5-Feb-06 14:48
Chatura Dilan5-Feb-06 14:48 
GeneralRe: How to get the path for font folder Pin
Dave Kreskowiak5-Feb-06 16:46
mveDave Kreskowiak5-Feb-06 16:46 
GeneralRe: How to get the path for font folder Pin
Chatura Dilan6-Feb-06 1:05
Chatura Dilan6-Feb-06 1:05 
GeneralRe: How to get the path for font folder Pin
Dave Kreskowiak6-Feb-06 2:36
mveDave Kreskowiak6-Feb-06 2:36 
QuestionDirect Read/Write access to disk sectors Pin
IH8Microsoft4-Feb-06 14:29
IH8Microsoft4-Feb-06 14:29 
AnswerRe: Direct Read/Write access to disk sectors Pin
Dave Kreskowiak5-Feb-06 3:55
mveDave Kreskowiak5-Feb-06 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.