日期:2014-05-17  浏览次数:20526 次

C# DateTime 转换成byte[]
如题,求解,在线等了拜托各位!

------解决方案--------------------
自己看看吧
------解决方案--------------------
http://blog.csdn.net/tenors/article/details/3072768
------解决方案--------------------
赶紧来帮着接分
------解决方案--------------------
难道不能直接转么?

byte[] b = BitConverter.GetBytes(DateTime.Now.Ticks);
------解决方案--------------------
存在从 byte 到 short、ushort、int、uint、long、ulong、float、double 或 decimal 的预定义隐式转换。