Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the year start day

Status
Not open for further replies.

rsx

Programmer
Dec 12, 2002
28
CA
Hello,

Is there away to change the date to start April 01, instead of Jan 1?

I need to calculate which week any particular day of the year would be. So April 01 - April 08 would be week 1 and so on.

Can the DATEPART function be used some how?

Thanks in advance.
 
I don't think you can set anything to change the first day.

I recommend you create a permanent table in your database. This table should have 2 fields, a Date Field and a Week Number field. Then, instead of using the DatePart function to return the week number, you simply join to this new table and return the week number column.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top