Expiry date format in email templates

Mehr
2 Jahre 3 Monate her #123372 von karencheah
karencheah erstellte das Thema Expiry date format in email templates
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.
Folgende Benutzer bedankten sich: JiangHongTiao

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Jahre 2 Monate her #124637 von JiangHongTiao
JiangHongTiao antwortete auf das Thema: Expiry date format in email templates
I have experienced the same issue and I cannot find it in settings.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130328 von saltheart
saltheart antwortete auf das Thema: Expiry date format in email templates
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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130333 von tpartner
tpartner antwortete auf das Thema: Expiry date format in email templates
What is your survey date format?

I find that {date('l\, F j\, Y',strtotime(EXPIRY))} works with the following formats:
  • dd.mm.yyyy
  • dd-mm-yyyy
  • d-m-yyyy
  • d.m.yyyy
  • yyyy-mm-dd
  • yyyy/mm/dd
  • mm/dd/yyyy

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130335 von saltheart
saltheart antwortete auf das Thema: Expiry date format in email templates
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)

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her - 1 Jahr 9 Monate her #130337 von tpartner
tpartner antwortete auf das Thema: Expiry date format in email templates
The date format is set in Survey properties --> Edit text elements --> Date format


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Anhang:
Letzte Änderung: 1 Jahr 9 Monate her von tpartner.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130346 von DenisChenu
DenisChenu antwortete auf das Thema: Expiry date format in email templates
HI,

LimeSurvey version and build number ?

github.com/LimeSurvey/LimeSurvey/commit/...41989578c9d5aa451ad2

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130377 von saltheart
saltheart antwortete auf das Thema: Expiry date format in email templates
Version 2.06+ Build 151205

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130379 von tpartner
tpartner antwortete auf das Thema: Expiry date format in email templates
Can you please update to the latest release and retest?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Folgende Benutzer bedankten sich: saltheart

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 9 Monate her #130380 von saltheart
saltheart antwortete auf das Thema: Expiry date format in email templates
That fixed it. Thanks!

I guess I should have tried that first. :)

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 7 Monate her #133686 von first
first antwortete auf das Thema: Expiry date format in email templates
I also trying to add expiry email in email template but I get junk HTML :
<span class='em-expression em-haveerror'><span title='Format a local date/time; string date(format [, timestamp=time()])' class='em-function' >date</span>(<span title='' class='em-var-string'>'l\, F j\, Y'</span>, <span title='Convert a date/time string to unix timestamp; int strtotime(string)' class='em-function' >strtotime</span>(<span title='Undefined variable' class='em-error'><span title='Undefined variable' class='em-var em-var-error' >EXPIRY</span></span>))</span>

Anything you guess I am doing wrong...

Version 2.06+ Build 150612

Survey Designer and Programmer

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 7 Monate her #133694 von first
first antwortete auf das Thema: Expiry date format in email templates
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 .

Survey Designer and Programmer

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 7 Monate her #133699 von DenisChenu
DenisChenu antwortete auf das Thema: Expiry date format in email templates

OMdev schrieb: Anything you guess I am doing wrong...

Version 2.06+ Build 150612

Fixed in 2.06_plus_151215

github.com/LimeSurvey/LimeSurvey/commit/...41989578c9d5aa451ad2

Did you read the topic ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
1 Jahr 7 Monate her #133702 von first
first antwortete auf das Thema: Expiry date format in email templates
Yes , I did but didnt follow that link.. Got it now..

Survey Designer and Programmer

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha