Copy link to clipboard
Copied
I am using variables to apply the date to the course, but the client would like 05/08/2020 and the different date formats I've tried in variables will not give me the 0 in front of the day, if needed. Is this possible?
Copy link to clipboard
Copied
Mak a new variable with a pre value:
DateFormat = DDMMYYYY
And use cpInfoCurrentDateStringDDMMYYYY
/Jacob
(And if the Month first)
DateFormat = MMDDYYYY
Copy link to clipboard
Copied
Or
var d = new Date();
var s = '';
s = d.getDate()+'/'+(d.getMonth()+1)+'/'+d.getFullYear();
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Use this instead of a single date variable
$$cpInfoCurrentDate$$/$$cpInfoCurrentMonth$$/$$cpInfoCurrentYear$$
Copy link to clipboard
Copied
Doh...
I misread it. Thought it was about REMOVING the zeroes 😉