Dates - Week to regulare date

  • Thread starter Thread starter Vina
  • Start date Start date
V

Vina

I have a column in my query that has the number for the
week of the year. Can someone give me an idea on how i
can convert this to a regular date meaning maybe give me
the first day of the week?

Thanks
Vina
 
Try the DateAdd function.

TheDate: DateAdd("ww",WeekCount - 1,#1/1/04#)

That should give you a date in the week. If you want the first day of the week
then you will have to manipulate this a bit more

TheDate: DateAdd("d",1-Weekday(DateAdd("ww",WeekCount -
1,#1/1/04#)),DateAdd("ww",WeekCount - 1,#1/1/04#))
 
Thanks John, this works great!!!
-----Original Message-----
Try the DateAdd function.

TheDate: DateAdd("ww",WeekCount - 1,#1/1/04#)

That should give you a date in the week. If you want the first day of the week
then you will have to manipulate this a bit more

TheDate: DateAdd("d",1-Weekday(DateAdd("ww",WeekCount -
1,#1/1/04#)),DateAdd("ww",WeekCount - 1,#1/1/04#))

.
 

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

Back
Top