How should I convert JavaScript date object to ticks? I want to use the ticks to get the exact date for my C# application after synchronization of data.
If you want to convert your DateTime object into universal ticks then use the following code snippet:
DateTime
var ticks = ((yourDateObject.getTime() * 10000) + 621355968000000000);
There are 10000 ticks in a millisecond. And 621.355.968.000.000.000 ticks between 1st Jan 0001 and 1st Jan 1970.