How can I determine or know how many days has a month of a date.
Example:
2016-01
2015-12
2011-10
I know how to calculate differences between dates using DATE, but I don’t have idea of doing this.
The principal reason to wanna do is, that Theres months with 30 days, 31 days (February 28 days and 29 days).
So this is the reason, know how many days have a month, based on year,month.
I have three popUpMenus:
- Year
- Month
- Day
And at now, I’m doing as follows:
- In Month popupMenu I have this rows: 1,2,3,4,5,6,7,8,9,10,11,12
So If Row 2 is Selected then
in popupDay Add this rows: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29
Else
in popupDay Add this rows: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31