This will return a value of 6. "h" specifies hours. "9:00 AM" and "3:00 PM" are dates but you do not need to specify the date because if no date is specified today's date is implied. Hope this helps.
B-)
You need to get the minutes ("n" and do the conversion to Hrs:Mins more-or-less manually. You also need to be aware of the possability of having 'strange' stuff in a textbox and add error chacking/limits/validation code.
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.