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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining all the weekdays of a month

Status
Not open for further replies.

Blondie96

Programmer
Aug 12, 2004
119
0
0
US
(I put this in the wrong forum, so I'm posting it here, where it belongs)

I need to produce a list of the dates (i.e. 4/18/05, 4/19, 4/20, 4/21, 4/22...)
of the weekdays of a month I pass as a variable.

Does anyone know how I could produce this?

Thanks

Tamra
 
Hello Blondie96!

Try this...
Code:
MsgBox DatePart("W", "04/19/2005")

This will return 1 - 7, so you can then do an evaluate statement or something to determine the text value for the week day.

Good luck!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top