Skip to Content
Menu
This question has been flagged
1203 Views

I want to import datetime inside rules but i cant

 def last_day_of_month(date_value):
return date_value.replace(day = monthrange(date_value.year, date_value.month)[1])

result = last_day_of_month(payslip.date_from)



Avatar
Discard