Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
IWDCRInfo.getModificationDate
prem_pratick
We have Implemented some changes in our API (js) files. So when a user saves the DCR the new data would be loaded in the DCR.
But again if the user edits the same DCR , the remote server call would be done and the same data would be again uploaded. This would lead to a major bottle neck.
we are getting the date last modified using the below command.
IWDCRInfo.getModificationDate()
is there any way to compare the date to something like
i.e. 12/20/2006 and if this is true then only call the remove server ( from form API).
Pls help me for the same.
Prem Pratick
Find more posts tagged with
Comments
Bill Klish
I think you would just create Date() objects in your javascript and do the comparison from there.
I was looking at a javascript 1.4 guide and it indicates that you can do that.
Something like:
dcrDate = new Date(IWDCRInfo.getModificationDate());
then I believe you can just use standard logic operators on the Date object.
Haven't tested it so no guarantees.
Hope that helps.
prem_pratick
Thanks for the reply. you were correct.
I Just had to use something as below
var dcr_Date = new Date(IWDCRInfo.getModificationDate());
var year=(dcr_Date.getYear());
alert(year+"Year Last updated");
after that i can use the variable year for further comaprison.
The below URL was too helpful for the same.
http://www.w3schools.com/jsref/jsref_obj_date.asp
Prem Pratick