I dont use JS
like this, personaly I would do this type of thing on the server side. Anyhow, I supose you can do what you are trying to do
You should research the following two functions:
isDate - (Returns a Boolean value indicating whether an expression can be converted to a date.)
cDate - (Returns an expression that has been converted to a Variant of subtype Date.)
Run these functions on the variables you are comparing to the date type value from the DB. EG:
if cDate(startdate)=cDate(rs1("holydate")) then
if you think you should use a function, use it. To ensure varaibles are the type you want them to be, wrap functions around them.
FYI - you say:
;;;but it cant work.
You should be more precise, what are the exact browser behaviours, errors etc
Wind is your friend