
How to pass Date type variable to a custom ActiveX component
Hi,
I have to write ASP script to insert data into DB Server using custom
ActiveX component installed on application server. The customer ActiveX
component was written in VB and has only one parameter (date type). I
connot pass JScript Date variable into that component, my code is:
var axObj = Server.CreateObject("Libray.Class");
var anyDate = new Date("April 9, 2000");
axObj.UpdateDate(anyDate); // Here I got " Microsoft JScript runtime error
// '800a000d' Type mismatch"
Any suggestion? Sorry for bad English.
Regards,
Chalermpong Chaiyawan