...
Here is an example of a snippet of code when added to the include.js will allow you to do something like this in a rule: DateControl?.value =MyUtil?.today();
Code Block |
---|
var MyUtil = { today: function() { var d = new Date(); var dd = d.getDate(); if (dd < 10) dd = '0' + dd; var mm = d.getMonth() + 1; if (mm < 10) mm = '0' + mm; var yyyy = d.getFullYear(); return String(mm + "-" + dd + "-" + yyyy); } } |
...