Utghar Posted January 9, 2003 Posted January 9, 2003 I'm currently doing a windows form, i have to get the time and the hour and insert in a database. Here's my code: Dim hora As DateTime = DateTime.Now Me.OleDbDataAdapter1.Fill(DataSet11) DataSet11.hores.AddhoresRow(hora) Me.OleDbDataAdapter1.Update(DataSet11) The problem is that in the database only appears the date, the hour doesn´t appear. It's a bug or is my code? HELP ME PLEASE! Sorry form my bad english! Quote
Moderators Robby Posted January 9, 2003 Moderators Posted January 9, 2003 I would change the field's data type to String/Text and the code to... Dim hora As String = Now.ToLongTimeString Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.