Convert .NET DateTime ticks to human-readable date
A .NET DateTime ticks value represents the number of 100‑nanosecond intervals since January 1, 0001 at 00:00:00.000 (the .NET epoch). The difference between the .NET epoch and the Unix epoch (January 1, 1970) is 621355968000000000 ticks.
.NET DateTime ticks are commonly encountered in logs. This tool converts ticks to a human-readable date, a Unix timestamp, and Windows FILETIME (100‑ns intervals since 1601-01-01).
The current .NET DateTime ticks value is
Enter your .NET DateTime ticks below:
Code examples
PowerShell
$ticks = 639000000000000000
$date = [DateTime]::new($ticks)
Write-Output $date.ToString("yyyy-MM-dd HH:mm:ss")
or just:
[DateTime]::new(639000000000000000)
C#
long ticks = 639000000000000000;
DateTime date = new DateTime(ticks);
Console.WriteLine(date.ToString("yyyy-MM-dd HH:mm:ss"));
With time zone:
DateTime dateUtc = new DateTime(ticks, DateTimeKind.Utc);
DateTime localDate = dateUtc.ToLocalTime();