Connecting Tech Pros Worldwide Forums | Help | Site Map

First day of week

simon
Guest
 
Posts: n/a
#1: Nov 22 '05
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



Cor Ligthert
Guest
 
Posts: n/a
#2: Nov 22 '05

re: First day of week


Simon,

How did you test that,
[color=blue]
> If I use day function:
>
> day(date), I get 1 for sunday.[/color]
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
[color=blue]
>
> How can I set, that the first day of week is monday?
>
> Thank you for your answer,
> Simon
>
>[/color]


Closed Thread


Similar .NET Framework bytes