Data Grid and DateTime Values From SQL Server
From: Jonesgj (g_at_btinternet.com)
Date: 09/14/04
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: Unicode to ASCII string conversion"
- Previous message: CJ Taylor: "Re: Custom Web Server"
- Next in thread: W.G. Ryan eMVP: "Re: Data Grid and DateTime Values From SQL Server"
- Reply: W.G. Ryan eMVP: "Re: Data Grid and DateTime Values From SQL Server"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 20:38:40 +0000 (UTC)
Hi,
I have connected to a SQL Server table using dataAdapter/Dataset to fill a
data grid. On SQL Server a column is a DateTime datatype (its actually a
'LastLogon' column ) and has both Date and Time. However, when I retrieve
the records in the data grid, only the date portion is shown. I can't see
what I'm doing wrong.
I followed Chapter 10 of the Coding Techniques for MS VB.NET which is a step
by step tutorial, and everything works - data retrieval and updating, but no
time is displayed.
Incidentally - I can see the correct data in Ent Manager and Query analyser
i.e Date and Time.
Any help appreciated.
Kind regards
JonesG
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: Unicode to ASCII string conversion"
- Previous message: CJ Taylor: "Re: Custom Web Server"
- Next in thread: W.G. Ryan eMVP: "Re: Data Grid and DateTime Values From SQL Server"
- Reply: W.G. Ryan eMVP: "Re: Data Grid and DateTime Values From SQL Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|