Hello All,
I have a question related with dataset. I wonder why am I reading wrong value from a dataset?
The field that I want to read has the value of: 2010-06-28 21:00:00
However, when I'm trying to read the first row using:
DateTime endShift = Convert.ToDateTime(ds.Tables[0].Rows[0]["rep_time_to"]);
I get: 04/07/2010 9:00:00 PM
As you can see this value is correct except the date.
Why should I do to get the correct value which is 2010-06-28 21:00:00?
Thanks in advance.
A newbie programmer!