- Posts: 77
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding the submit time and date into basic admin notification emails
- bruce78
- Topic Author
- Offline
- Senior Member
Less
More
6 years 3 months ago #162247
by bruce78
Adding the submit time and date into basic admin notification emails was created by bruce78
I am trying to include the time and date of submission into basic admin notification emails.
At the moment, the code below gives me the correct date, but the time is always listed as 7.01 or 1.01 or similar which doesn't match the actual time the respondent completed the survey....
Does anyone know what I'm doing wrong? Thanks!
At the moment, the code below gives me the correct date, but the time is always listed as 7.01 or 1.01 or similar which doesn't match the actual time the respondent completed the survey....
Date of Submission
<br>
{date("d-F-Y h:m")}
Does anyone know what I'm doing wrong? Thanks!
The topic has been locked.
- steve_81
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 37
6 years 3 months ago - 6 years 3 months ago #162274
by steve_81
Replied by steve_81 on topic Adding the submit time and date into basic admin notification emails
Hi bruce78,
should do the trick. BTW: I don't know why its an i for the minutes
PS: It follows this format and syntax php-function-date
Code:
{date("d-F-Y H:i")}
PS: It follows this format and syntax php-function-date
Last edit: 6 years 3 months ago by steve_81. Reason: Adding Link
The following user(s) said Thank You: bruce78
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10103
- Thank you received: 3591
6 years 3 months ago #162278
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Adding the submit time and date into basic admin notification emails
I suspect it's because they want to keep it to single characters and both lower and uppercase m are used for month so they simply used the first unused character.BTW: I don't know why its an i for the minutes
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- bruce78
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
- Thank you received: 4
6 years 3 months ago #162392
by bruce78
Perfect, that worked a charm... thank you!
Replied by bruce78 on topic Adding the submit time and date into basic admin notification emails
steve_81 wrote:
should do the trick.Code:{date("d-F-Y H:i")}
Perfect, that worked a charm... thank you!
The topic has been locked.