convert DateTime to binary
Published: 24. October 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Converting » DateTime
Tags: C# Conversion DateTime Serialization
DateTime dateTime = new DateTime(2011, 1, 20, 16, 40, 55, 500, DateTimeKind.Utc); long binary = dateTime.ToBinary(); Console.WriteLine(binary);Console Output:
5245997402982387904
| Send us feedback about this snippet » |





