The user selects an expiration time from a selectbox and then uses a radio button to select AM/PM.
The result looks like '3:30 PM'.
So I'm trying to compare 3:30 PM to 4:30 PM.
I need to compare the expiration time to the current time, if the current time is past the expiration time I need to delete it. I have a scheduled task that runs every 30 minutes checking for expired records.
How can I compare the times?
What datatypes do I need to use?
Any examples would be great!
The result looks like '3:30 PM'.
So I'm trying to compare 3:30 PM to 4:30 PM.
I need to compare the expiration time to the current time, if the current time is past the expiration time I need to delete it. I have a scheduled task that runs every 30 minutes checking for expired records.
How can I compare the times?
What datatypes do I need to use?
Any examples would be great!