0

Is there any equal function to

datepart(dw,getdate()) in SSRS expression which gives me the week number of a particular day

ie for monday it should be 2 .

Thanks in adavance

SqlLearner
  • 763
  • 8
  • 23
  • 37

1 Answers1

0

The date in VB is zero-based, so just convert the DayOfWeek enum to its integer value and add one...

CInt(DateTime.Today.DayOfWeek)+1
Madison
  • 411
  • 5
  • 14