Hi! I'm getting crazy with the operations with dates (like adding months etc etc)
This is my code:
$frequenza_pagamenti = (int)'{contratti___frequenza_pagamenti_raw}';
if ($frequenza_pagamenti == 12) {
$data_seconda_rata = strtotime ( '+1 month' , strtotime ('{contratti___data_pagamento_prima_rata}') ) ;
return date('d/m/Y',$data_seconda_rata);}
The date shows correctly in details and list, but when i apply pre-filters as "Today", it doesn't work.
I'm unable to find out the problem.
This is my code:
$frequenza_pagamenti = (int)'{contratti___frequenza_pagamenti_raw}';
if ($frequenza_pagamenti == 12) {
$data_seconda_rata = strtotime ( '+1 month' , strtotime ('{contratti___data_pagamento_prima_rata}') ) ;
return date('d/m/Y',$data_seconda_rata);}
The date shows correctly in details and list, but when i apply pre-filters as "Today", it doesn't work.
I'm unable to find out the problem.