Here is what I did and why. Hope this helps.
JS Date var d = new Date()
returns: thu november 19 08:30:18 PST 2015
C # doesn't like this format, so convert it to UTC:
var dc = d.toUTCString()
returns: Thu, November 19, 2015 16:30:18 UTC
UTC - The worlds time standard is not a time zone, so you need to change it to a time zone
var cr = dc.replace("UTC","GMT")
now he is ready for
Thu, November 19, 2015 16:30:18 GMT
In one line
var ol = d.toUTCString().replace("UTC","GMT")`
Thu, November 19, 2015 16:30:18 GMT
for c #
DateTime DateCreated= DateTime.Parse(ol);
The bitmaster
source share