C
Colin Morgan
Hi,
I want to find the week number in which a date resides,
with Monday as the first day of the week - sounds
simple ;-)
I want to select the date range from a monthcalendar and
have created a test windows forms application that uses
datepart from a clicked date in the monthcalendar. Both
datepart and the monthcalendar are set as first day of
week set as Monday. The monthcalendar looks ok, but the
date calculated from datepart does not match that
displayed in a monthcalendar!
I know about the 53 week per year issue if first day is
Monday and of you set the first day of the year to the
1st, but I cannot understand why the week number
displayed in a monthcalendar is different for that from
datepart.
Does anyone have a solution (e.g. a way to access the
week number in the monthcalendar)?
Regards
Colin
I want to find the week number in which a date resides,
with Monday as the first day of the week - sounds
simple ;-)
I want to select the date range from a monthcalendar and
have created a test windows forms application that uses
datepart from a clicked date in the monthcalendar. Both
datepart and the monthcalendar are set as first day of
week set as Monday. The monthcalendar looks ok, but the
date calculated from datepart does not match that
displayed in a monthcalendar!
I know about the 53 week per year issue if first day is
Monday and of you set the first day of the year to the
1st, but I cannot understand why the week number
displayed in a monthcalendar is different for that from
datepart.
Does anyone have a solution (e.g. a way to access the
week number in the monthcalendar)?
Regards
Colin