Sorry,
I'm doing this in report builder.
Thanks,
Jasper
-----Original Message-----
From: Mark Wonsil [mailto:mark_wonsil@...]
Sent: Wednesday, April 18, 2007 9:48 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Beginning of week calculation
Hi Jasper,
is to utilize the DayOfWeek function in your language of choice (DOW for
VB.Net, not sure the Progress equivalent). This function returns the day of
the week, usually 0 for Sunday, 1 for Monday, etc. You can then subtract the
Day of Week number from your date to get Sunday. Depending on your system
settings, DOW may return 0 for Monday, so make the necessary adjustments.
Mark W.
[Non-text portions of this message have been removed]
I'm doing this in report builder.
Thanks,
Jasper
-----Original Message-----
From: Mark Wonsil [mailto:mark_wonsil@...]
Sent: Wednesday, April 18, 2007 9:48 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Beginning of week calculation
Hi Jasper,
> Does anybody know how I can calculate the beginning date of every week? OurYou didn't mention version or programming language but the general rule I use
> week starts on Sunday so I want the date for every Sunday of the year.
is to utilize the DayOfWeek function in your language of choice (DOW for
VB.Net, not sure the Progress equivalent). This function returns the day of
the week, usually 0 for Sunday, 1 for Monday, etc. You can then subtract the
Day of Week number from your date to get Sunday. Depending on your system
settings, DOW may return 0 for Monday, so make the necessary adjustments.
Mark W.
[Non-text portions of this message have been removed]