Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1549 Prikazi

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
Opusti