Goto main content

help desk

How can I get the last day of the month.

I need to generate a payment calendar and it is set tot the last day of the month. How can I get the last date.

Asked on 2023-01-23 07:22:00

OFFICIAL ANSWER

The function datetime of sncode can be extended.

You can use something like this. 
datetime(date:payment_date_day, extended:true, format:"%Y-%m-%SNlastdayofmonth");

Do not forget to add the extended:true parameter.

 

Answer by:
Etienne Carrier

Replied on: 2023-01-23 11:31:00