Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I Convert a week number into a date or range?

Status
Not open for further replies.

JovialBob

Programmer
Feb 25, 2003
9
GB
Hi,

I can make a week number -

Format(Now,"ww") = 34

easy peasy...

Does anyone know if I can go the other way round

like
Format(34,"dd/mm/yy", fistdayofweek) = 18/08/03

or something?

Thanks in advance...
 
iWeek% = 34
?DateSerial(Year(Date),1,((iWeek - 1) * 7)-1)
 
Thank you CClint - that's very helpful, it woks a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top