I need to know how can i get to know in php that whether a given date is expired or not? I need to show the status of the same in a package manager where I need to know whether the package is active or expired. I have 2 fields in mysql table called start_date and expiry_date.
I need to know how can I subtract the expiry_date from star_date and get the value and then check whether that expiry_date is expired or yet to expire.
Please help me.
Okay, I’m going to make a few assumptions so that my answer can be more clear.
If your expiry_date is the date that the package expires, you can use php to check whether it is a date in the future or not like so.