0

This statement gives me the number of the current week starting from the 1st of january

select datepart(week,getdate())

I would like the calculation to be done starting from 1st november.
Is there a way I can accomplish this?
I know the date first method can pick the day the week starts etc.

Praveen
  • 8,945
  • 4
  • 31
  • 49
Abbaskhan6428
  • 65
  • 1
  • 11

1 Answers1

0

You may looking for DateDiff

select DATEDIFF(week, '1-Nov-2014', GETDATE()) + 1
OutPut: 45
Praveen
  • 8,945
  • 4
  • 31
  • 49