JavaScript Date to c# Ticks


var
ticks =((yourDateObject.getTime()*10000)+621355968000000000);

var minDate = new Date("2013","00", "01","08","00","00");

 

var ticks1 = ((new Date().getTime() * 10000) + 621355968000000000);
console.log("tick1:"+ticks1);

var ticks2 = ((minDate.getTime() * 10000) + 621355968000000000);
console.log("tick2:"+ticks2);

 

你可能感兴趣的:(JavaScript)