Checking the difference between 2 formatted dates
Posted on 2004-04-02
This question builds from a previous question I ask/answered myself which had to do with a scheduling component but anyway the question is.
I have a form that has on it.
1 Timer (Timer1)
2 Labels (Label1 and Label2)
Every second Timer1 updates Label1 with the current date/time in this format "4/22/04 @ 9:38:21 PM" minus the quotes ofcourse and on Label2 I have a static date/time in the same format as above but since it's not attached to the Timer it does not change (hence the word static)
Anyway how can I check to see if the time on Label2 is 5 minutes or more behind the time on Label1 (taking into account the @ symbol )