If you want to convert your DateTime
object into universal ticks then use the following code snippet:
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.