C#中,将double转换成Datetime类型的方法:
DateTime dt = new DateTime(1899, 12, 30);
dt = dt.AddDays(41390); //replace 5.875 with appropriate double value
MessageBox.Show(dt.ToString());
C#中,将double转换成Datetime类型的方法:
DateTime dt = new DateTime(1899, 12, 30);
dt = dt.AddDays(41390); //replace 5.875 with appropriate double value
MessageBox.Show(dt.ToString());
评论回复