i'm trying to create a calendar program like the windows date/time in the sys tray, any ideas would be helpful!!

the first problem i have is i can't get the total days in a month, any ideas on hoow to do this??
thanx