AnsweredAssumed Answered

Formatting Dates in JavaScript on a Form

Question asked by kelliganp on Sep 27, 2016
Latest reply on Oct 7, 2016 by emha

Hi Folks,


I am just getting my feet wet in Forms and JS. I am trying to make the following function run against a form button click to fill out some fields in a form.


function signFormPM() {
NWF$('#'+ jsvar_PMDate).val(fn-FormatDate(Current Date, MM/dd/yyyy));
NWF$('#'+ jsvar_PMName).val("Last NameFirst Name (Current User)");

The name works ok but the date is loading a decimal into the text field. Can anyone assist?