2014-09-30 15:06:49
   /// <summary>
        /// DateTime to Long
        /// </summary>
        /// <param name="dateTime">DateTime</param>
        /// <returns>Long</returns>
        public static long ToUnixTimestamp(this DateTime dateTime)
        {
            TimeSpan unixTimeSpan = (dateTime - new DateTime(1970, 1, 1, 0, 0, 0));
            return (long) unixTimeSpan.TotalSeconds;
        }
 
Invalid Email or Password