Answered
Simple php question
I want to be able to create an if/else statement for the
formatting of a date cell in a dynamic result table.
This cell will turn red if the date returned is less than a specified number of days older than todays date.
The trouble is, I don't know how to subtract days from a date format....
$OldDateThreshold = (date("Y-m-d")-365); Where I am trying to set a year old threshold. - this just returns a value of 1642?
I do hate this PHP, MySQL date format!
This cell will turn red if the date returned is less than a specified number of days older than todays date.
The trouble is, I don't know how to subtract days from a date format....
$OldDateThreshold = (date("Y-m-d")-365); Where I am trying to set a year old threshold. - this just returns a value of 1642?
I do hate this PHP, MySQL date format!
