• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Submission date format in admin email

Submission date format in admin email 11 years 8 months ago #24494

I need to include the submission date/time in the admin email. That is no problem, but I further need to split the date up on separate lines; Year, Month, Day, Hour, Minute, Second. I suppose this can be done using a php script, but I can't figure out how. Any ideas?
The administrator has disabled public write access.

Submission date format in admin email 11 years 8 months ago #24496

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can try adding a hidden field and the following script in the default value area:
//<code> 
$string = date('d/m/Y/H/i/s');
$pieces = explode("/", $string);
 
$final = "Day: ".$pieces[0]."\n Month: ".$pieces[1]."\n Year: ".$pieces[2]."\n Hour: ".$pieces[3]."\n Minutes: ".$pieces[4]."\n Seconds: ".$pieces[5];
 
return $final;
//</code>

Afterwards use that hidden field's placeholder within your admin email body. If your hidden fields is called "hidden", the placeholder would be {hidden:value}.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: mathias.garrigou

Submission date format in admin email 9 years 1 month ago #34577

  • info3291
  • info3291's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
This gets the date and time the form is loaded. I need the same but i need to display the time when the form is submitted. Any thoughts?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!