in access 2003, i created a date/time field, appDate, and set it to general date, which shows exactly as the rendered date below
then i try to update it with
I was following this tutorial, http://www.mikesdotnetting.com/Article/92/MS-Access-Date-and-Time-with-ASP.NET, which i thought indicated i could use the above syntax and date format
the response.write rendering of the date was "9/28/2009 2:32:11 PM" - just to be clear w/o the quotes
if i change the date variable to command.Parameters.AddWithValue("appDate", DateTime.Now.Date)
the update goes fine, however, as expected, i only get the date and no time, i want the access date field to include the time
it seems there is some incompatability with the vb.net datetime.now and access2003 date/time - general date, there is some way to get around this?
then i try to update it with
Code:
Using command As New System.Data.OleDb.OleDbCommand("bapps3insert", db)
'Set the commandtype
command.CommandType = Data.CommandType.StoredProcedure
'Specify the parameters
Response.Write("datetime.now = " & DateTime.Now & "</br>")
command.Parameters.AddWithValue("appDate", DateTime.Now)
etc.
the response.write rendering of the date was "9/28/2009 2:32:11 PM" - just to be clear w/o the quotes
if i change the date variable to command.Parameters.AddWithValue("appDate", DateTime.Now.Date)
the update goes fine, however, as expected, i only get the date and no time, i want the access date field to include the time
it seems there is some incompatability with the vb.net datetime.now and access2003 date/time - general date, there is some way to get around this?