我想将日期存储为表中的数字。我知道该怎么做,但我不知道该怎么回去。如何将long变量转换为ToDateTime。DateTime now = DateTime.Now;DateTime today = t.ToDateTime; // I am lookingThis Method does not exist
我知道有很多方法可以将DateTime转换为long。我不介意使用哪种技术。我只是想有一种可以来回转换的</e
的贴士展示了如何将滴答转换为日期。当使用DateTime::FromFileTime将Get- date ().Tics送回日期时,年份值出现错误。我发现了UTC的问题,但今年仍然是不正确的。的帖子显示了最初的问题。这两种计算似乎使用的是一个不同的基数,这使得计算周期为3600年。这里发生了什么事?PS> [DateTime]::FromFileTime((