lazysheepmedia
Member
Folks, another calc problem
I am trying to add 6 months to a date - I have a date element but the dates remain unchanged
Can anyone point me to what is wrong?
Thanks as always
I am trying to add 6 months to a date - I have a date element but the dates remain unchanged
PHP:
$day = substr( '{___tenancy_start_date}', 8, 2);
$month = substr('{___tenancy_start_date}', 5, 2);
$year = substr('{___tenancy_start_date}', 0, 4);
return date( 'd F Y', mktime(0, 0, 0, date( $month)+6, date( $day), date( $year)));
Can anyone point me to what is wrong?
Thanks as always