- /// <summary>
- /// 将BYTE数组转换为DATETIME类型
- /// </summary>
- /// <param name="bytes"></param>
- /// <returns></returns>
- private DateTime BytesToDateTime(byte[] bytes)
- {
- if (bytes != null && bytes.Length >= 5)
- {
- int year = 2000 + Convert.ToInt32(BitConverter.ToString(new byte[1] { byt
C#中将Byte数组转化成DateTime类型
最新推荐文章于 2024-04-19 11:21:32 发布