I am selecting a record from a table that has multiple datetimeoffet
columns, when I add the for json auto it converts it from
2017-06-21 08:12:16.1430000 +00:00
to
2017-06-21T08:12:16.1430000Z
This is my code:
select LastUpdateTimestamp
from table
where id = 1
for json auto
which produces this output:
[{"LastUpdateTimestamp":"2017-06-21T08:12:16.1430000Z"}]
How can I keep it in the format without it being converted, or how can I convert it in C# back to that format? I am doing a lot of dynamic work and I can't rely on all dates to fit a certain format.