其他分享
首页 > 其他分享> > 时间字符串转16进制字符串

时间字符串转16进制字符串

作者:互联网

        private void Form1_Load(object sender, EventArgs e)         {             string timeStr = DateTime.Now.ToLongTimeString().ToString();             string[] arr = timeStr.Split(':');             string str = (int.Parse(arr[0])).ToString("X") + " " + (int.Parse(arr[1])).ToString("X") + " " + (int.Parse(arr[2])).ToString("X");

            label1.Text = str;         }

标签:arr,进制,16,int,timeStr,Parse,ToString,字符串,string
来源: https://www.cnblogs.com/xihong2014/p/11869736.html