Data Format

The data in my Access DB is a long time like: 02:06 PM

After I fill the data into a DataGridView by using DataAdapter, it shows :12/30/1899 02:06 PM.

Where I should go to control this format

Thanks for any help!

Cici



Answer this question

Data Format

  • BruceWALT

    I'd check that the data is in the dataset and that the data binding to the column in the datagridview are correct.


  • Amirali

    Cici.... first of all the data is not reaching the datagrid control. The date you are showing reflects an unintialized cell or field.



  • Aubrey Kagan

    ReneeC,

    The actual datatype is long time.

    Thanks.

    Cici


  • louise g

    Thanks.

    I got it, I adjusted the data format in DataGridView.


  • payyans

    what is the actual datatype of the variable in your database



  • Data Format