2009-06-18 字串日期格式化DateTime.ParseExact 1777 0 摘要:字串日期格式化DateTime.ParseExact 很多function都是將日期格式轉成字串格式但目前遇到的需求,則是將日期的字串格式,加上"/"的日期字串格式找了一下資料,發現這個方法還蠻好用的DateTime.ParseExact("20090618", "yyyyMMdd", null).ToString("yyyy/MM/dd"); DateTime.ParseExact 回首頁