first you have to import calender
and you can use monthrange() method.
Returns weekday of first day of the month and number of days in month, for the specified year and month.
for getting the last day of a month you can use this script:-
Hope this helps..........
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/3/15, 9:01 AM|
|Seen: 1058 times|
|Last updated: 5/4/15, 3:02 AM|