Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: amosbatto

By HeshanKaru1994
#826486
Code: Select all
console.log("switch E");
            var leasePeriodFullDays = parseInt(leasePeriodMonth*30)+parseInt(leasePeriodDays);
            console.log("leasePeriodFullDays:"+leasePeriodFullDays);
            var ExpiryNewDate = new Date(commencementDate);
            ExpiryNewDate.setDate( ExpiryNewDate.getDate()+ parseInt(leasePeriodFullDays));
            console.log("ExpiryNewDate:"+ExpiryNewDate);
            $("#dateOfTermination").setValue(ExpiryNewDate);
Im using this code to set the date value from variables.but its not setting
User avatar
By amosbatto
#826494
This won't work:
$("#dateOfTermination").setValue(ExpiryNewDate);

You need use this format:
$("#dateOfTermination").setValue("YYYY-MM-DD");
or:
$("#dateOfTermination").setValue("YYYY-MM-DD HH:MM:SS");
See:
https://wiki.processmaker.com/3.2/Datet ... _Datetimes

Maybe if you explain what you are trying to do, I can help you.

Capture.PNG I have use this javascript code to ad[…]

Having a business, especially when it involves tra[…]

The condition is not workable

Hi there, Recently I've encountered the amount wh[…]

Yes i'm using vue js to load the data.