Include the received date within the body of the email- Email

I’m modifying a mail template, and I need to include the received date within the body of the email- Email, Can you indicate which variable to use?

For example, there are:
Manuscript URL: {$ submissionUrl}
Username: {$ authorUsername}
Date: ???

Version OJS = 3.1.0.0
Server information

OS Platform: Linux
PHP version 5.5.21
Apache version: Apache / 2.4.6 (Red Hat Enterprise Linux) OpenSSL / 1.0.2k-fips mod_auth_gssapi / 1.5.1 mod_nss / 1.0.14 NSS / 3.28.4 PHP / 5.5.21 mod_wsgi / 3.4 Python / 2.7.5
Driver of the postgres database
Database server version: PostgreSQL 9.2.24 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28), 64-bit

I appreciate your help…

Hi @proyrevistas,

That’s not currently something that’s available to submission-related email templates, but it wouldn’t be hard to add. See lib/pkp/classes/mail/SubmissionMailTemplate.inc.php in the assignParams function – you’d need to add a variable based on $submission->getDateSubmitted(). If you’re able to make the modification, please consider submitting it as a pull request to github in case others would find it useful.

Regards,
Alec Smecher
Public Knowledge Project Team

Could you please tell me in which part of the code I add the variable,

I do not have much knowledge in PHP.