I have some Javascript that creates a nice monthly calendar. I want to format specific dates. However, I can't get the dates that I want to format unless I write some VBScript to get the specified dates from the Database. The premise of the code should look like this:
If anyone can help me find a way to format the calendar date background color with dates brought back from the database. I would be forever indebted to them.
Thanks,
Bill N
Code:
if ((arrN[ii]==dd)&&(mm==currM)&&(yyyy==currY))
{
eval("sp"+ii).style.backgroundColor="#90EE90"
}
//Get dates from DB
//if a date is the same as DB Value then: //eval("sp"+ii).style.backgroundColor="yellow"
Thanks,
Bill N