I want to convert the datetime value to the value that I will get from SQL Server 2008.
SQL Server truncate the milliseconds to 3 digits, so I truncate the milliseco
Here's what you want:
using System.Data.SqlTypes; // from System.Data.dll public static DateTime RoundToSqlDateTime(DateTime date) { return new SqlDateTime(date).Value; }