I made a few UDF a while back that would help out with this.

ReturnCTDays(), ReturnCTMonths(), and you will need FlipCTime() and CTime() UDF's

Code:
$days = ReturnCTDays(2004,2)
? ctime($days[ubound($days)])