I am having problems rendering the correct first day for every month that does not have 31 days in it. Does anyone know what the actual value of date(t) returns; It says in the docs, it returns the values 28 thru 31. I have my script checking for leap years. Basically I am able to render the correct first day of the month in my calendar for Jan,March,May,July,August,October and December, all months with 31 days. Any suggestions, I would be most grateful. Thanks, Jules