Dim d1 As Date = DateTimePicker1.valueDim d2 As Date = DateTimePicker2.valueDim m As Integer = (d2.year - d1.year) * 12 + (d2.month - d1.month)textbox9.text = m
有什么问题吗