![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, By default when you do a datepart(wk,getdate()) it will count the number of weeks from the 1st Jan [based on the datefirst parameter] do you know if it's possible to change the 1st Jan to the 1st July so we can use the datepart(wk,getdate()) to count the number of weeks into the fiscal year. ...Cheers Matt |
#3
| |||
| |||
|
|
How about using a calendar table to indicate the fiscal year? http://www.aspfaq.com/2519 On 8/10/09 8:24 PM, in article 93FED08B-B61A-4A55-AA5A-0E4FD87B819B...soft (DOT) com, "Matt_The_Beginner" Matt_The_Beginner (AT) discussions (DOT) microsoft.com> wrote: Hi All, By default when you do a datepart(wk,getdate()) it will count the number of weeks from the 1st Jan [based on the datefirst parameter] do you know if it's possible to change the 1st Jan to the 1st July so we can use the datepart(wk,getdate()) to count the number of weeks into the fiscal year. ...Cheers Matt |
#4
| |||
| |||
|
|
How about using a calendar table to indicate the fiscal year? http://www.aspfaq.com/2519 On 8/10/09 8:24 PM, in article 93FED08B-B61A-4A55-AA5A-0E4FD87B819B...soft (DOT) com, "Matt_The_Beginner" Matt_The_Beginner (AT) discussions (DOT) microsoft.com> wrote: Hi All, By default when you do a datepart(wk,getdate()) it will count the number of weeks from the 1st Jan [based on the datefirst parameter] do you know if it's possible to change the 1st Jan to the 1st July so we can use the datepart(wk,getdate()) to count the number of weeks into the fiscal year. ...Cheers Matt |
![]() |
| Thread Tools | |
| Display Modes | |
| |