> I was going to suggest; > > $dayofweek = date("D",strtotime(date("Y-m-01"))); > > Warren Vail > >
That probably works but if you look, you're calling a function inside a function that's inside another function. $dayofweek = date("D", mktime(0,0,0,$m,1,$y)); A little more simpler. BTW, "D" or "l" pretty much do the same thing. It depends on whether you wan Mon or Monday. D = abbrviated name l = full name -- --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php