testvar =objdataconn.GetDisplayDate(strlastrun,"mm/dd/yy")<BR>am getting a type mismatch error at this line in my code <BR>any help is appreciated<BR>strlastrun is date value.<BR>
Give us the full error message.<BR><BR>It's probably that GetDisplayDate is expecting a different variable type (not variant) as the first parameter.<BR><BR>Craig.
getdisplaydate( dtdate as variant and dtfmt as variant) as variant<BR>i gave the dtdate as date and converted strlastrun to date using cdate. and still it gave an error so i changed i tto be variant
Okay.<BR><BR>Full error message, line number, hex code, the lot.<BR><BR>Craig.
Error Type:<BR>Microsoft VBScript runtime (0x800A000D)<BR>Type mismatch: 'GetDisplayDate'<BR>/Int/apps/Alert/scp.asp, line 737<BR>This is the error!!!<BR>am not able to paste the whole code as it is huge..<BR>