Dim oDate1 As Date = Date.Parse("2008/5/1")
Dim oDate2 As Date = Date.Parse("2008/7/10")
'先算月份
Dim iMonths As Integer = DateDiff(DateInterval.Month, oDate1, oDate2)
'再算天數
Dim iDays As Integer = DateDiff(DateInterval.Day, DateAdd(DateInterval.Month, iMonths, oDate1), oDate2)
MsgBox(String.Format("經過{0}月{1}天", iMonths, iDays))