Welcome, Guest
Username: Password: Remember me

TOPIC: How to set current datetime to the datetime field

How to set current datetime to the datetime field 09 Oct 2014 06:59 #12685

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
Hi,
How to set the current datetime to the datetime field?

Also, can you please post a short list of changes that went onto 2.6.5?

Regards
Vivek
The administrator has disabled public write access.

How to set current datetime to the datetime field 09 Oct 2014 08:50 #12686

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
You need to define it in the item model in
- loadFormData() : if you want it to be modifiable
- prepareTable() : If you want to set it after the user sent the form (per security)

The description of the last version is here : www.j-cook.pro/index.php/docs/versions/197-2-6-5

Hope it helps
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: vivek
Time to create page: 0.052 seconds

Get Started