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

FirstDayofMonth giving incorrect value

Status
Not open for further replies.

sevex

Programmer
Sep 18, 2001
74
CA
I'm using the FirstDayOfMonth function to help create a calendar, but it doesn't seem to return the correct day. If I use:

#DayOfWeek(FirstDayOfMonth(Now()))#

to get the day of the week for the current month (may), and it returns 2 (monday) when it should be 4 (wednesday).

I must be doing something wrong... thanks for any help!
 
might be a dumb question, but is the servers date set correctly? that is where he now() function is getting its info.
 
okey dokey, just makeing sure... because i have made that mistake.... =(
 
heh... well, what's really weird, is I took the code from an example in the manual, and tested it. It also gave an incorrect value...

Maybe this function is bugged?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top