Calculating day in a week

 I need to develop a report where it should retrieve only monday's transactions from the database and it should be scheduled to run every monday at 8. So can anyone please let me know the synatx I need to used in order to get the monday's data. and the column being use  for that in the databse is status date.

For example:
Status date: 2010-03-29 07:25:01.000 (this is how it is stored in databse)

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1) Algorithm for day-of-week calc here:

2) Just plug in the date(s) retrieved from db call and if not a Monday as verified by the algorithm, get next older record...

3) Scheduling on every Monday can be done with chron or Task Scheduler (depending on platform of server)
ReportAnalystAuthor Commented:
 Thanks for the reply, but I am looking for a syntax to be used in cognos 8.4 report studi
All you have to do is below:
Create a filter in the query with following syntax:
_day_of_week ([Status Date],1) = 1

Change the [Status Date] column to whatever your date column is and you'll get data for Monday's only.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It is tested in Cognos 8.4
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.