datetime型互转int型

long t;

t = DateTime.Now.Ticks;
textBox1.Text = t.ToString();


textBox2.Text = DateTime.FromFileTimeUtc(t).ToString();

posted @ 2018-12-07 18:29  未码痴騲丶  阅读(1055)  评论(0编辑  收藏  举报