private void button1_Click(object sender, EventArgs e)
{
long inputNum = long.Parse(this.textBox1.Text);//首先将其反向转换成DateTime对象:
long Ticks = inputNum / 100; //将其先转换成long ticks(刻度为100纳秒),
DateTime dTime = new DateTime(Ticks); //再通过格式转换
this.textBox2.Text = dTime.ToUniversalTime().ToString();
} |