I would like validate the current date with question posted date if date difference is greater then 1 day then it needs to show in over due question also this will not consider the array of dates which are already i having in my array.
Like if a question posted on 20-July-11.
exemption date array {’21-July-11′, … etc}
current date is 22-July-11
then the output needs to be shown like question is waiting for 1 day instead of 2 days.
can any one help on it.
That is some example code I have created for you to calculate the due date. When you submit a question, calculate the due date that way and store it in the database with entry for that question…
Output: