Adding the submit time and date into basic admin notification emails

More
7 months 1 week ago #162247 by bruce78
bruce78 created the topic: Adding the submit time and date into basic admin notification emails
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....

Date of Submission
<br>
{date("d-F-Y h:m")}


Does anyone know what I'm doing wrong? Thanks!

Please Log in or Create an account to join the conversation.

More
7 months 1 week ago - 7 months 1 week ago #162274 by steve_81
steve_81 replied the topic: Adding the submit time and date into basic admin notification emails
Hi bruce78,
{date("d-F-Y H:i")}
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
Last Edit: 7 months 1 week ago by steve_81. Reason: Adding Link
The following user(s) said Thank You: bruce78

Please Log in or Create an account to join the conversation.

More
7 months 1 week ago #162278 by tpartner
tpartner replied the topic: Adding the submit time and date into basic admin notification emails

BTW: I don't know why its an i for the minutes

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.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

More
7 months 1 week ago #162392 by bruce78
bruce78 replied the topic: Adding the submit time and date into basic admin notification emails

steve_81 wrote:

{date("d-F-Y H:i")}
should do the trick.


Perfect, that worked a charm... thank you!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!