Return week from date.

G

Guest

I need to return the week of the year from a date. The date format is
01/19/2006 and as an example using the above date, I would like to return the
week "3". I am working with DatePart. In the following example:

Week: DatePart("w",[ProductRentaltbl].[TransactionDate])

the return is the number for the day of the week. How can I get the week
numbers 1 through 52?
 
R

Rick Brandt

Don said:
I need to return the week of the year from a date. The date format is
01/19/2006 and as an example using the above date, I would like to
return the week "3". I am working with DatePart. In the following
example:

Week: DatePart("w",[ProductRentaltbl].[TransactionDate])

the return is the number for the day of the week. How can I get the
week numbers 1 through 52?

"ww"
 
G

Guest

Thanks Rick!

Dennis


Rick Brandt said:
Don said:
I need to return the week of the year from a date. The date format is
01/19/2006 and as an example using the above date, I would like to
return the week "3". I am working with DatePart. In the following
example:

Week: DatePart("w",[ProductRentaltbl].[TransactionDate])

the return is the number for the day of the week. How can I get the
week numbers 1 through 52?

"ww"
 

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