Mar 4, 2008 #1 Lochbel Technical User Dec 5, 2002 125 AU Is there a technique i can use to set the week number by specificing a non standard start date. e.g week commences 01/07/yyyy TIA Lochbel Australia
Is there a technique i can use to set the week number by specificing a non standard start date. e.g week commences 01/07/yyyy TIA Lochbel Australia
Mar 4, 2008 #2 smcnulty2000 Technical User Sep 10, 2001 230 US Depends on what you want to use it for. DateDiff, DatePart, and WeekdayName all support a first day of week constant. DatePart also supports first week of the year values. Upvote 0 Downvote
Depends on what you want to use it for. DateDiff, DatePart, and WeekdayName all support a first day of week constant. DatePart also supports first week of the year values.
Mar 5, 2008 #3 Madawc Programmer Sep 5, 2002 7,628 GB For a week number, use Code: DatePart ("ww", {date1}) That gives a number, 01 to 53, with adjustments possible to start in some non-standard way. You could enter the number of the week as a numeric parameter, check it against the DatePart value from the dates. Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 Upvote 0 Downvote
For a week number, use Code: DatePart ("ww", {date1}) That gives a number, 01 to 53, with adjustments possible to start in some non-standard way. You could enter the number of the week as a numeric parameter, check it against the DatePart value from the dates. Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10
Mar 5, 2008 #4 lbass Technical User Feb 9, 2002 32,816 US If you first insert a group on {@fiscalyear}: {table.date}+184 You can then use a formula like this for weeknumber: if month({table.date}) >= 7 then datepart("ww",{table.date},crSunday)-26 else datepart("ww",{table.date},crSunday)+26 At least this should get you close to what you're looking for. -LB Upvote 0 Downvote
If you first insert a group on {@fiscalyear}: {table.date}+184 You can then use a formula like this for weeknumber: if month({table.date}) >= 7 then datepart("ww",{table.date},crSunday)-26 else datepart("ww",{table.date},crSunday)+26 At least this should get you close to what you're looking for. -LB