We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

can i write a formula to get a week number

Medium Priority
2,593 Views
Last Modified: 2012-05-11
can i convert a date into a week number? i.e 12/04/2011 is equal to week 15
Comment
Watch Question

Raheman M. AbdulMessaging and Directory Services
CERTIFIED EXPERT

Commented:
Good source of method to calculate the week number: http://www.merlyn.demon.co.uk/weekcalc.htm
You can use the  built-in function

DATEPART("ww", {SALES.SALEDATE}, crSunday)


But be carefully. It has problems if the date is in the new year but belongs to week 53 of the old year.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.