Hi All,
Need help...
I am trying to use the datepart or format function to return the week of year. I need Sunday to be the first day and the week containing Jan 1 to be the first week of the year.
I am going nuts because no matte what I do, I cannot get any date like 31 Dec 2008 to be week 1 using the following -
wk = datepart("ww", #31/12/2008#, vbsunday, vbfirstjan1)
this always returns week 53!!
Am I missing something or is this wrong?
Need help...
I am trying to use the datepart or format function to return the week of year. I need Sunday to be the first day and the week containing Jan 1 to be the first week of the year.
I am going nuts because no matte what I do, I cannot get any date like 31 Dec 2008 to be week 1 using the following -
wk = datepart("ww", #31/12/2008#, vbsunday, vbfirstjan1)
this always returns week 53!!
Am I missing something or is this wrong?