I have field which is of type DateTime.
When inserting a record, I am also providing the time into the field.
When reading that field with LINQ, it will return me the correct date but the time values has the default, 12:00:00 AM
In the database, I have values with date and time for each record which is correct. The problem is that the time changes to default when reading/databinding with LINQ.
dataGridView1.DataSource = IQueriableObject.Select(q => new
{AppointmentTime = q.AppointmentTime.Value.Date.TimeOfDay}) ;
What solution is there for extracting the time portion?