Excel 的点点滴滴
生活随笔
收集整理的這篇文章主要介紹了
Excel 的点点滴滴
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Excel Date to C# date,來自這里的
public static DateTime ConvertToDateTime(double excelDate) {if (excelDate < 1){throw new ArgumentException("Excel dates cannot be smaller than 0.");}DateTime dateOfReference = new DateTime(1900, 1, 1);if (excelDate > 60d){excelDate = excelDate - 2;}else{excelDate = excelDate - 1;}return dateOfReference.AddDays(excelDate); }轉載于:https://www.cnblogs.com/fantasylu/archive/2011/08/16/2140551.html
總結
以上是生活随笔為你收集整理的Excel 的点点滴滴的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HDU-1016 Prime Ring
- 下一篇: select,poll,epoll用法