Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- byte[] bytes = new byte[] { 190, 110, 116, 207, 178, 140, 229, 64 };
- long l = BitConverter.ToInt64( bytes, 0 ); // 4676298487706709694
- double d = BitConverter.Int64BitsToDouble(l); // 44133.5878240741
- DateTime dt = DateTime.FromOADate( d ); // 2020.10.29. 14:06:28
- Console.WriteLine( dt );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment