Date & time Timestamps

.NET ticks converter

Value
Direction
Epoch system
Result 2023-11-14T22:13:20Z
Readable Tue, 14 Nov 2023 22:13:20 GMT
ISO 8601 2023-11-14T22:13:20.000Z
JavaScript Date Tue Nov 14 2023 22:13:20 GMT+0000 (Coordinated Universal Time)
Date only 2023-11-14
Time only (UTC) 22:13:20
Unix seconds 1,700,000,000
Unix milliseconds 1,700,000,000,000
Windows FILETIME 133,444,736,000,000,000
.NET ticks 638,355,968,000,000,000
Excel serial 45,244.925926
Mac HFS+ seconds 3,782,844,800
Note
Local · Kind is not part of the tick value
Advertisement
320 × 100

A .NET `DateTime.Ticks` value counts 100-nanosecond intervals since 1 January 0001. The number is large. About 638 quadrillion for a current date.

How to use the .net ticks converter

1 Paste the value. Every other epoch is shown alongside the date.
2 Switch the direction to go the other way — the same page converts both ways.
3 All times are UTC. Convert to your own zone separately if you need local time.

Counting from year one makes .NET ticks the odd one out and produces values around 6.4 × 10¹⁷, which exceeds JavaScript’s safe integer range. A tick value pasted into JavaScript as a Number loses precision in the last two digits. Use BigInt or strings. The other thing worth knowing is that DateTime carries a Kind; Utc, Local or Unspecified, which is not part of the tick value, so two identical tick counts can mean different instants depending on the Kind of the object they came from. That is a genuine design wart and the reason DateTimeOffset exists and is generally the better type.

Questions

DateTime was defined to cover the whole Gregorian era, so the origin is 0001-01-01. It makes the numbers large.

Microsoft, DateTime.Ticks
Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding