General information
Title:
Retrieving a datetime field form a CE database table
Hi,
I'm trying to retrieve a datetime field from a WinCE database table using the following code:
DateTime LupdDate;
System.Data.SqlServerCe.SqlCeCommand sqlCeCommand2 = new
System.Data.SqlServerCe.SqlCeCommand("select LupdDate from Product where prodid =12036",SqlCeProvider.Connection);
sqlCeCommand2.Connection.Open();
LupdDate = (DateTime)sqlCeCommand2.ExecuteScalar();
The problem is that I only get the date part of the datetime.
Any ideas why ?
Best regards,
Hans
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only