Hello! Long time user first time poster...
I have a lot of times that I want to know how old they are by just highlighting them and hitting a macro... this is to compare SLA's for a helpdesk.
The date/time is in the following format:
01/21/2009 08:14:22 AM
I want a macro that will compare the date/time (just highlight, copy, insert to variable...) with the response SLA and display a window (preferably with all of these and a YES or NO or something) telling me if it is older (compared to the current time) than:
15 minutes
30 minutes
45 minutes
1 hour
2.5 hours
3 hours
4 hours
5 hours
I could do one thing, since I don't have an SLA older than 5 hours, all I have to do is have it check to see if the date is today and if it is not check to see if it is earlier than 5am, however I would really love to get something that would work in future macros as well as I will be using the system with that time/date format for a long time to come.
I am well versed with macro express but my programming ability is not quite up to par for a task like this. I tried so hard to get something working that would chop up the format and find the time, compare to the date, etc but I just can't wrap my head around all the variables and things needed to convert to 24 hour or to take the date itself into account... I found this: http://bluepointdesign.com/macros/Day_of_Year.htm but it doesn't seem to be what I need and I don't know enough of the theory on how it works to modify it.
Can anyone help me? THANK YOU!!!