Currently, I have a datetime field in one of my sqlserver table.
And I Query (SELECT Column1, myDateField FROM MyTimeTable BETWEEN @startDate AND @endDate).
NOW I got Column1, myDateField at C# code side using Entity framework.
Problem
Then I'm passing these dates to client side as json. Now, asp.net converts date to "\/Date(1410588000000)\/" format. (ie date '19-9-2014' to 1410588000000). When I create date with this ticks (From 1970 ticks of javascript) it will add extra 5.00 hours (server timezone is -5.00). This happens because while converting datetime to "\/Date(xxxxxxxxx)\/" format, .net consider the date in database (ie, now a c# datetime using entity framework) is local (-5.00). So it creates ticks for +5.00 hours. How can I convince .net that the time is in utc?