I am trying to validate input date fields, and I want to make sure that the entires are no more than 90 days difference from each other.
Could anyone offer any solutions to the function I need to be using here.
Below is my psuedocode of what I want to achieve.
if (($filter_in['dt']-90) > ($filter_in['df']));
The -90 bit is where I need to minus 90 days from the end date. Is it possible to go about this in this approach?
Do like this
or in above code you can just format like this
or simply like @vascowhite said
to get a positive integer only, the above code returns
28which is in days.