In ActionScript, how do you get the day number at the end of the month?
-
June Example
getEndOfMonth() returns 30;
-
July Example
getEndOfMonth() returns 31;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In many languages, you can achieve this by getting a date value for the zeroth day of the following month, then working it out from that. So maybe try:
If that doesn’t work, you can get the first day of the following month, and subtract a day