C# DateTime to Javascript Date ticks

Date: 2019-11-25
private static readonly long UnixEpochTicks = (new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).Ticks;
public static long ToJavascriptTicks(DateTime value)
{
	return (value.ToUniversalTime().Ticks - UnixEpochTicks) / 10000;
}
29310cookie-checkC# DateTime to Javascript Date ticks