I do not know how to get Last day of specific month . please I need helping you to me for that .
Thank you for you .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I do not know how to get Last day of specific month . please I need helping you to me for that .
Thank you for you .
Hi,
first you have to import calender
and you can use monthrange() method.
monthrange(year, month)
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:-
calendar.monthrange(year, month)[1]
Hope this helps..........
from calender import monthrange
from datetime import date
mdays = monthrange(year,month)[1]
date2 = date(year,month,mdays)
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
Download Odoo 8
تم الحل
|
|
1
مايو 22
|
25723 | |
|
0
مارس 17
|
4076 | ||
|
0
نوفمبر 16
|
8321 | ||
|
2
يناير 16
|
5547 | ||
|
1
ديسمبر 23
|
21182 |