I need to insert a date variable that contains formating like so:
12-04-07 13:22:11
Into a SQL Server 2005 table.
Note it is not always that date, that is a sample of the variable as it is formatted.
What would be the proper way to insert that?
When I try it as is, I get a date of 7/2/2007 12:00:00
I am using vbscript if that matters.
Start Free Trial