将mmddyyyy转换为Excel格式(1904年日期格式) [英] Conversion of mmddyyyy to excel format(1904 date format)

查看:238
本文介绍了将mmddyyyy转换为Excel格式(1904年日期格式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何使用c#将日期(mmddyyyy)转换为1904格式的任何想法.Googled找不到任何信息.

Any ideas on how to convert date (mmddyyyy) to 1904 format in c#.Googled it was not able to find any infos.

推荐答案

DateTime.FromOADate函数:
http://msdn.microsoft.com/zh-我们/library/system.datetime.fromoadate%28v=vs.80%29.aspx [ http://www.clear-lines.com/blog/post/Converting-Excel-date-format-to-SystemDateTime.aspx [
Have a look at the DateTime.FromOADate function:
http://msdn.microsoft.com/en-us/library/system.datetime.fromoadate%28v=vs.80%29.aspx[^]
or this small article describing the issue:
http://www.clear-lines.com/blog/post/Converting-Excel-date-format-to-SystemDateTime.aspx[^]


这篇关于将mmddyyyy转换为Excel格式(1904年日期格式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆