How do I work with dates?
i've tried several formcalc , javascript methods, none of them have worked me far. want take current date , extract month , year. use these test against other values. alternative build dates , compare them current date. date can changed user after initial display of form.
in psuedo code this:
// in minimum wage field
// monthyear field set current date, can changed user
var curdate = monthyear;
var prior10date = "07/01/2010";
var prior09date = "07/01/2009";
if (curdate > prior10date) then
this.rawvalue = 8.25;
else
if (curdate > prior09date) then
this.rawvalue = 8.00;
else
this.rawvalue = 7.75;
moderators - please delete in wrong forum.
More discussions in LiveCycle Workbench
adobe
Comments
Post a Comment