Menu
Please help. I know that there has to be a better way to write the following code in ASP:
if (cFirstMonth==’January’){nFirstMonth=0;}
if (cFirstMonth==’February’){nFirstMonth=1;}
if (cFirstMonth==’March’){nFirstMonth=2;}
if (cFirstMonth==’April’){nFirstMonth=3;}
if (cFirstMonth==’May’){nFirstMonth=4;}
if (cFirstMonth==’June’){nFirstMonth=5;}
if (cFirstMonth==’July’){nFirstMonth=6;}
if (cFirstMonth==’August’){nFirstMonth=7;}
if (cFirstMonth==’September’){nFirstMonth=8;}
if (cFirstMonth==’October’){nFirstMonth=9;}
if (cFirstMonth==’November’){nFirstMonth=10;}
if (cFirstMonth==’December’){nFirstMonth=11;}
Will