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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top