My problem is!!!
Getting the entered leave date of an employee in textbox, txtleavefrm
frmdate = txtleavefrm.value
I navigate through the arraylist using a forloop like this...
for(int i=0;i
if(convert.tostring(txtleavefrm.value) == convert.tostring(arylstholidays[i]))
{
page.register("clientscript",alert'Entered day is already an holiday') //dont check for syntax in this line
}
}
But the one in the bold, the condition checking is not working...do let me know how to compare arraylist items against a datetime field
Replies
Know the answer? Post it — somebody with the same question will find it here.