• 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: Date in Admin email

Date in Admin email 13 years 4 months ago #15558

  • filippo.bracci
  • filippo.bracci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello to everybody!

I would like to know if there is a possibility to make extended date in admin email.

I mean that when I receive the email I would like to have "Sunday 3 December 2011" instead of "03.12.11"

Is it possible?

Thank you in advance for your help!

Filippo
The administrator has disabled public write access.

Re: Date in Admin email 13 years 4 months ago #15564

I've been using this for dates on my forms for a while. I found the code on the forum a while ago.
//<code>
$today = date("F j, Y");
return $today;
//</code>

Add the code to the default value area of the form field you are using (either text or hidden field if you don't want it showing). I found that a lower case "L" is used to put in a full day name. So add that to the string above and you should get what you are looking for. It should probably be l j F Y

Kathy
The administrator has disabled public write access.

Re: Date in Admin email 13 years 4 months ago #15569

  • filippo.bracci
  • filippo.bracci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello Kathy,

I have tried to as you told me but it doesen't work.

I have added the code in the default value of "Calendar" field, but anything happen...
The administrator has disabled public write access.

Re: Date in Admin email 13 years 4 months ago #15570

I only use this code when I put it in a text box or hidden field -- so people don't have to enter or select a date. I've never tried it in the calendar field. Sorry. Maybe someone else can help out on this one.

Kathy
The administrator has disabled public write access.

Re: Date in Admin email 13 years 4 months ago #15721

  • marinus
  • marinus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 2
Try this in atribute,
dddd dd mmmm yyyy

It works for me
The administrator has disabled public write access.
The following user(s) said Thank You: NEMGTR_webmanager

Re: Date in Admin email 13 years 4 months ago #15730

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

You can use the code NEMGTR_webmanager mentioned(with a slight adjustment) in the "Default value" of the calendar field and display the current date in your desired format:
//<code>
$today = date("l j F Y");
return $today;
//</code>

In order to have any date that the user selects from the calendar in the same format you will need to add the format marinus mentioned in the "Date format" property of the calendar field:

dddd dd mmmm yyyy
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!