📜  颤振获取月份的天数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:48.057000             🧑  作者: Mango

代码示例1
DateTime now = new DateTime.now();
DateTime lastDayOfMonth = new DateTime(now.year, now.month + 1, 0);
print("${lastDayOfMonth.month}/${lastDayOfMonth.day}");