Convert date

L

Luis

Hello.
I want to create a function that receives a week number and returns the date
of monday of that week.
For instance, if i send week number 34 to the function, the function should
return 16/Aug/2004.

Can anyone give me a hint?

Thanks
Luis
 
A

Alex Dybenko

First you have to find a monday of first week of ceratain year - you can get
weekday of january 1st and then plus or minus days
then you can add number of week to this "first monday" using function
dateadd()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top