Excel 日期差函数

years=DATEDIF(startdate,enddate,"y")
months=DATEDIF(startdate,enddate,"m")
days=DATEDIF(startdate,enddate,"d")

将日期
16.06.2010
 转为
2010-06-16
=(RIGHT(C3,4)&"-"&MID(C3,4,2)&"-"&LEFT(C3,2))

你可能感兴趣的:(Excel 日期差函数)