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