Skip to content
Advertisement

Not able to get difference between two datetime?

Please check the below code. I am trying to get the difference but every time getting 0. Can anybody please point me what is the problem with below code?

JavaScript

Advertisement

Answer

your formatter does not fit the date format used.

Try:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement