JS:
var unix_time = Math.round(new Date().getTime() / 1000);
C#:
var unixTime=(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
JS:
var unix_time = Math.round(new Date().getTime() / 1000);
C#:
var unixTime=(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;