参考
Dim d as date = "2018-05-03"d = new Date(d.year, d.month, 1)d = d.AddMonths(1).AddDays(-1)msgbox(d)