I have looked and could not find an answer.
I am trying to get the number of days that a report is being run for. I need it to be displayed and used for calculations.
I am using the following code in custom code to get and assign the variable.
$date1 = strtotime($criteria["del_date"]->getcriteriavalue("RANGE1"));
$date2 = strtotime($criteria["del_date"]->getcriteriavalue("RANGE2"));
$days_num = date_diff($date1,$date2);
I am getting the following error message when I run the report.
/var/www/html/domino/reports/src/Reportico.php(4608) : eval()'d code Line 3 - date_diff() expects parameter 1 to be DateTimeInterface, boolean given
What am I doing wrong and how can I get this to work?
Sorry, I have been really busy and this is just getting frustrating.