How to read varbinary fields?

I am trying to read a varbinary date field (e.g 1262525887) from a mysql db, from an asp page.
I get this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch
Any help?
We request you to open a support ticket with exact URL on which you are getting error. We will check and reply you back.