I have two variables
var a="10:20:am";
var b="10:25:am";
I want javascript code for getting 5 min difference.
any body help me to get 5 min difference
I have two variables
var a="10:20:am";
var b="10:25:am";
I want javascript code for getting 5 min difference.
any body help me to get 5 min difference
You can roll your own function or you can have a look at a beautiful little lib called moment.js
Also: http://stackoverflow.com/questions/1787939/check-time-difference-in-javascript/1788084#1788084
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.