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

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support