[RPG/JS] Example of TODAY function
Posted: Tue Jun 13, 2017 1:08 pm
I was wondering if someone could provide an example of using &(F:TODAY()) with a formatting option. I've tried using it to set a variable with no luck. In the following case the variable today is null. I've tried with a date format and without.
Code: Select all
lrexec (
function () {
this.q_sql("?today = SELECT &(F:TODAY('yyyyMMdd'))");
},
function () {
this.q_receiveVars("today");
},
function () {
this.console(this.today);
},
null
);