jmahdi Posted November 25, 2011 Share Posted November 25, 2011 Hi, I'm trying to find a way to get the difference between two times in my form, the problem arises because I'm using a 12 hour format with AM/PM to define day time. what is the best way to do this?? thanks Quote Link to comment https://forums.phpfreaks.com/topic/251762-time-difference-subtraction-in-javascript/ Share on other sites More sharing options...
ManiacDan Posted November 25, 2011 Share Posted November 25, 2011 The date object can parse string dates into timestamps. Quote Link to comment https://forums.phpfreaks.com/topic/251762-time-difference-subtraction-in-javascript/#findComment-1291052 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.