Flutter/Tip
[Flutter] 이번 달의 일수를 얻는 법. 28일,29일,30일,31일 확인법 (How to determine the number of days in the current month.)
생년월일을 찾는다거나 캘린더 가지고 무언가를 할 때 임의로 validator를 만들어야할 때가 있다. 입력한 숫자가 해당월을 넘는지 확인하고 싶다면 다음과 코드를 사용해라 ENG Sometimes, when you need to retrieve a person's birthdate or perform tasks involving a calendar, you may need to create a custom validator. If you want to check if a given number exceeds the number of days in a specific month, you can use the following code: DateTime(YYYY, month + 1, 0).day // 조건문..