First day of week

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

If I use day function:

day(date), I get 1 for sunday.

How can I set, that the first day of week is monday?

Thank you for your answer,
Simon
 
Simon,

How did you test that,
If I use day function:

day(date), I get 1 for sunday.
this gives the day of the month you have in date, so probably you tested
with a date of 1-1-2004 or someting, to get the first day of the week you
can use

Dim daynumber As Integer = Now.DayOfWeek

Did you know that there is a newsgroup

microsoft.public.dotnet.languages.vb

That is more the place for typical VBNet questions.

I hope this helps?

Cor
 
Back
Top