Without giving too much away...
if(x==1)
{
//January
}
else if (x==2)
{
//February
}
I would also test for invalid numbers first before testing for the correct months.
Reputation Points: 304
Solved Threads: 277
Posting Virtuoso
Online 1,694 posts
since Oct 2009