Hi, may I know how I can change the expiry date field format in the email templates from yyyy-mm-dd to de-mm-yyyy? I have tried changing the date format in the text elements of the survey but that makes no difference to the expiry date field format. Can anyone advise if the format is fixed? Thanks in advance.
I'm trying to include EXPIRY in the Reminder email template. This works:
{date('l\, F j\, Y',strtotime('2016-01-28'))}
This does NOT work:
{date('l\, F j\, Y',strtotime(EXPIRY))}
In fact, I can't even get this to work: {strtotime(EXPIRY)}, although if I "Validate expression in Reminder" it is able to show me the value of EXPIRY. Is there something else I must do to get it to evaluate EXPIRY in the expression?
The date for this particular survey is displayed as 28.01.2016 00:00. However, when I "Validate Expression in Reminder" and hover over EXPIRY it displays "; Value= 28.01.2016". Where do I change the survey date format?
Incidentally, this text: This survey will be closing on {date('l\, F j\, Y',strtotime('2016-01-28'))}. {strtotime(EXPIRY)}
Translates to this text in the email: This survey will be closing on Thursday, January 28, 2016. strtotime(EXPIRY)
And of course if I substitute the hard-coded date (2016-01-28) with EXPIRY then it translates to: This survey will be closing on date('l\, F j\, Y', strtotime(EXPIRY)). strtotime(EXPIRY)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Update : I got rid of junk html by changing the setting : Use HTML format for token emails? --> Yes , but it still shows {date('l\, F j\, Y',strtotime(EXPIRY))} . I have also tried with date format as mm/dd/yyyy .
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.