• 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: how toget automatically today date in textboxfield

how toget automatically today date in textboxfield 14 years 11 months ago #10826

Hi,
I Createed a Form,In that form I am Using a Textfield as Date Received,It should be comes up by default todaydate

OR

How to Use PHP Code in Form Layout in RSFrom Component



Thanks
Mattareddy.B
The administrator has disabled public write access.

Re:how toget automatically today date in textboxfield 14 years 11 months ago #10833

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

In order to show the current date as the default value of a textbox field you could try adding the following code in the "Default Value" property:
//<code>
$today = date("F j, Y");
return $today;
//</code>
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.
The following user(s) said Thank You: pksahu007, DogLegs, nsbaoffice

Re:how toget automatically today date in textboxfield 14 years 11 months ago #10838

Thank You
It's Working Good
Last Edit: 14 years 11 months ago by mattareddy16.
The administrator has disabled public write access.

Re:how toget automatically today date in textboxfield 14 years 2 months ago #12998

  • ronf
  • ronf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,

I am currently using this code and it is working great! Thanks! I would like to tweak it to populate or update when the form is submitted. I am trying to use it as a timestamp of when the form is submitted. Right now it corespondents to when the page is loaded not when the form is submitted.

Does anyone have any suggestions on how to accomplish this.

Thanks

Ron
The administrator has disabled public write access.

Re:how toget automatically today date in textboxfield 9 years 5 months ago #33463

If i need today date in user email text how can i get ut
The administrator has disabled public write access.

Re:how toget automatically today date in textboxfield 8 years 6 months ago #36127

Hey there,

Did you ever find out how to do this? I also have a form that triggers an Admin and User e-mail and I would like the e-mail to show the date/time the form was submitted.

:)

Thanks for your knowledge.
The administrator has disabled public write access.

how toget automatically today date in textboxfield 4 years 2 months ago #41029

Hi,

How ti according to the language ? I would like to have «Lundi» (fr-FR) instead "Monday" (en-EN)
I have tryed this code but it doesn't work :

//<code>
setlocale(LC_TIME, 'fr', 'fr_FR', 'fr_FR.ISO8859-1');
$today = date("l d m Y");
return $today;
//</code>

Thank you in advance,

Regards
Dom
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!