AnsweredAssumed Answered

JavaScript Concatenation

Question asked by kelliganp on Oct 5, 2016
Latest reply on Oct 12, 2016 by kelliganp

Hi Folks,


I am tinkering around in our new Nintex Forms subscription and I was trying to concatenate some date parts to generate a date format. All of my function works except for one line (the 7th line with concat method). I am not a JS expert but this seems like the correct syntax. Can anyone tell me where I went wrong?

Also, is there a better way to represent code blocks in forum posts?


function loadStrDate(){
    var curDate = new Date();
    var curMonth = curDate.getMonth();
    var curDte = curDate.getDate();
    var curMSYear = curDate.getYear();
    var curYear = curMSYear + 1900;
    var strDate = curMonth.cancat("/",curDte,"/",curYear);
    NWF$('#'+ jsvar_strDate).val(strDate);


Thanks and regards,

Patrick Kelligan