A co-worker and I, both new to VBScript and ASP in general, are trying to insert the current datetime into an MS-SQL database table. Is there a function in VBScript (or SQL for that matter) to format a datetime object to an ODBC compatible datetime?
I am familiar with ColdFusion and it has a function called ODBCDateTimeFormat just for this sort of thing. In all my searching through a Wrox Press ASP book and all the VBScript reference material I could find on MSDN, I couldn't find any function to do this in VBScript.
I just got the idea that maybe you could do it straight through the SQL statement, but I haven't found a good reference to look through for that idea yet.
Anyone know? I'm to the point of babbling.
I am familiar with ColdFusion and it has a function called ODBCDateTimeFormat just for this sort of thing. In all my searching through a Wrox Press ASP book and all the VBScript reference material I could find on MSDN, I couldn't find any function to do this in VBScript.
I just got the idea that maybe you could do it straight through the SQL statement, but I haven't found a good reference to look through for that idea yet.
Anyone know? I'm to the point of babbling.