Hello, I'm doing a bookings register
In this register I have an initial date field and a nights field
I can't add the starting date to the nights
I tried this
I have a calc element named End:
$night= (int) ('{registro_foresteria___num_notti}');
return "'".date('d-m-Y', strtotime('{registro_foresteria___start}' . '+ '. $night. ' day'))."'";
Ex.
Start: 08-06-2021
Night:2
it return 08-06-2021
In this register I have an initial date field and a nights field
I can't add the starting date to the nights
I tried this
I have a calc element named End:
$night= (int) ('{registro_foresteria___num_notti}');
return "'".date('d-m-Y', strtotime('{registro_foresteria___start}' . '+ '. $night. ' day'))."'";
Ex.
Start: 08-06-2021
Night:2
it return 08-06-2021