I need to display in the report first Monday date, second monday data...etc.,up to end of month, User will enter year and month only in the type in prompts.
Please help out...
Can we create any calculated columns in the report. i don't want get detail records, but only dates i need to display in the first page of report(List Header).
Is the date string in your database in the format YYYYMMDD because what the others are trying to tell you is that unless the date sting is of YYYYMMDD format you cannot determine what day of week the record pertains to.
If the date string in your database is missing the DD you cannot find the day of week unless you can get your DBA to get that information from the source database and modify the date column to include DD also. You may also consider, at the same time, converting the date column to date format instead of string to make your reporting life easier.
Second_Monday = add-days(First_Monday, 7)
Third_Monday = add-days(First_Monday, 14) etc.
I know the formula is very involved but it will work. The formula is based on the oracle return value of 1 for Sunday, so that Monday is 2. If the return value is different, modify the decode statement accordingly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.