DateTime localTime = DateTime.Now; TimeSpan duration = new TimeSpan(localTime.Ticks); // Conversion of TimeStamp to DateTime DateTime dt = new DateTime() + duration;