When I select some data rows from mssql2005 database and bind them to datagrid, dates selected from db are invalid. For example in db I have date in form:
2009-05-10 00:00:00.000
but when it is displayed in data grid it looks like this:
5/9/2009 10:00:00 PM
So it shows 2 hours earlier then saved in db.
05 - it is month :-)
What am I doing wrong?
Records in db where added by insert sql query in Sql Management Studio, as these recods are just for testing.
I am using silverlight 3.0, ria services may preview, english vs08, polish MS vista home premium.