'日期相减
MsgBox DateDiff("s", "2018-11-28", "2022-09-01") '两个日期相隔秒数
MsgBox DateDiff("n", "2018-11-28", "2022-09-01") '两个日期相隔分钟数
MsgBox DateDiff("h", "2018-11-28", "2022-09-01") '两个日期相隔小时数
MsgBox DateDiff("d", "2018-11-28", "2022-09-01") '两个日期相隔天数
MsgBox DateDiff("w", "11/28/2018", "09/01/2022") '两个日期相隔周数
MsgBox DateDiff("m", "11/28/2018", "09/01/2022") '两个日期相隔月数
MsgBox DateDiff("q", "11/28/2018", "09/01/2022") '两个日期相隔季数
MsgBox DateDiff("yyyy", "11/28/2018", "09/01/2022") '两个日期相隔年数