gpt4 book ai didi

c# - 如何在 C# 中将时间戳字符串转换为日期

转载 作者:太空宇宙 更新时间:2023-11-03 11:42:34 27 4
gpt4 key购买 nike

如何在 C# 中将时间戳字符串转换为日期例如我需要像 excel 一样将 40504 转换为 2010/11/22

最佳答案

编辑:抱歉,DateTime.FromOADate(double date) iirc -- 链接到 msdn here ...

如果您的 40504 int 是您要转换的 excel (OA) 日期,我会澄清我的建议...

关于c# - 如何在 C# 中将时间戳字符串转换为日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4377120/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com