I’ve been trying to work this out for a while. I have a Microsoft Access 2007 database with a DATETIME field which I am trying to fill from a JScript Date object, viz
rs("DTField").Value = new Date();
I would have thought that both JScript and Access being Microsoft tools would know how to do this, but I assume too much it would seem.
What transforms do I need to apply to either side of the equation to make this value assignment work?
Added question:
What about going the other way, from database to JScript?
Use the
getVarDatefunction. From the documentation:To answer your added question, you need to explicitly create a
Dateobject.