how can calculate time differences in jsp/javascript

Can not you go through some tutorials at w3schools.com ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.