Hi,
I have one requirement and in that I want to calculate date difference using jQuery.
In this one date is modified date of ShaPoint lsit and second is todays date.
So I want difference between todays date and modified date.
I tried 2-3 ways but it is showing below errors
1) Invalid date format
2) NAN
Please help

Md Tahmidul AbedinRank #443 · 5.7K reputationPosted Mar 11, 2018, 9:10 PM EDT
As the process you are trying to formate the date, it is converting the date into string formate. I think the bellow example will do your requirments.
Ramesh PalanivelRank #372 · 6.8K reputationPosted Feb 19, 2018, 8:14 PM EST
Nanddeep NachanRank #38 · 35.2K reputationPosted Feb 21, 2018, 6:54 PM EST
Reshma BhalekarRank #1,355 · 1.2K reputationPosted Mar 14, 2018, 10:54 PM EDT
Reshma BhalekarRank #1,355 · 1.2K reputationPosted Feb 19, 2018, 11:23 PM EST
Reshma BhalekarRank #1,355 · 1.2K reputationPosted Feb 21, 2018, 10:56 PM EST
Piyush AgarwalRank #1,377 · 1.2K reputationPosted Mar 9, 2018, 1:09 AM EST
Please share your jquery code so that we can debug.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts