📅  最后修改于: 2022-03-11 14:57:48.057000             🧑  作者: Mango
DateTime now = new DateTime.now();
DateTime lastDayOfMonth = new DateTime(now.year, now.month + 1, 0);
print("${lastDayOfMonth.month}/${lastDayOfMonth.day}");