adavies
11/10/2020, 9:13 PMparse
and format
methods. Everything I try either gives me the "invalid field value" error or the "date value 1 must match 2" error.Sandii
11/10/2020, 9:22 PMvar dateFormat = runtime.getCurrentUser().getPreference({name: 'DATEFORMAT'})
, and set with a value like moment('whateverthedateis').format(dateFormat)
Sandii
11/10/2020, 9:23 PMeminero
11/10/2020, 9:57 PMbattk
11/10/2020, 10:17 PMbattk
11/10/2020, 10:18 PMadavies
11/10/2020, 10:47 PMform.addField({
id: 'custpage_date',
label: 'Date',
type: ui.FieldType.DATE
}).defaultValue = new Date(date);
adavies
11/10/2020, 10:48 PMSandii
11/10/2020, 11:22 PMdate
inside of the new Date() call, it might be in the wrong format so the new Date()
is not interpreting it correctly, if you just want today, then new Date()
will sufficebattk
11/11/2020, 12:55 AM