Hi
Can anyone suggest a simple way of determining a week number in the year (between 1-52) from an inputted date? This is for an accounts application so I would like the year start date, and thus week 1 start date, to be variable.
So for example, if the year start date was 1 August 2006, any date between 08 August 2006 and 14 August 2006 would return the number "2" (ie week 2 in the accounting year).
Hope this makes sense.
Tel
Can anyone suggest a simple way of determining a week number in the year (between 1-52) from an inputted date? This is for an accounts application so I would like the year start date, and thus week 1 start date, to be variable.
So for example, if the year start date was 1 August 2006, any date between 08 August 2006 and 14 August 2006 would return the number "2" (ie week 2 in the accounting year).
Hope this makes sense.
Tel