australian3
05-20-2010, 11:44 PM
Hi. I have encountered an issue with dates.
The DateTime.MaxDate in ASP.Net 2.0 returns a value 9999-21-31 23:59:59.
In our development and QA environments inserts and updates to the tables using this value work without an issue.
The same set of sql statements fail in the discountasp.net live database with an invalid datetime
However I have imported data from QA into live with this Max data and if you select the rows either into datagrid or in SQL server studio the system happily returns and displays a datetime of
9999-12-31 23:59:59.997
Has anyone else found this problem and knows why this happens?
Thanks
The DateTime.MaxDate in ASP.Net 2.0 returns a value 9999-21-31 23:59:59.
In our development and QA environments inserts and updates to the tables using this value work without an issue.
The same set of sql statements fail in the discountasp.net live database with an invalid datetime
However I have imported data from QA into live with this Max data and if you select the rows either into datagrid or in SQL server studio the system happily returns and displays a datetime of
9999-12-31 23:59:59.997
Has anyone else found this problem and knows why this happens?
Thanks