date_begin = CDate(InputBox("请输入时间,格式:1970-01-01")) date_diff = DateDiff("d", date_begin, date) msgbox "从 " & date_begin & "到今天 " & date & "是 " & date_diff & "天"