using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ICSSoft.FromERP.Extension { public static class CommonExt { /// /// 日期转时间戳 , 精确到毫秒 /// /// public static long ToMillisecondsTimeStamp(this DateTime dateTime) { return (dateTime.ToUniversalTime().Ticks - 621355968000000000) / 10000; } } }