Welcome, Guest
Username: Password: Remember me

TOPIC: Current date and time as the default value

Current date and time as the default value 07 Dec 2013 22:29 #11773

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
Hi,
How to specify a default value for datetime field in jcook..

My requirement is to specify a default value of current date and time..
The administrator has disabled public write access.

Current date and time as the default value 13 Jun 2016 10:25 #14039

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Hi,
I am looking for this answer too. In other words...

How can we set the default date to be NOW() in the JCook interface?

(I can do it via Fork code - but is there a way in the JCooK GUI Table > Date > Properties ? )

Thanks
Just call me Chris :)
The administrator has disabled public write access.

Current date and time as the default value 13 Jun 2016 16:10 #14057

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
In the field's properties, you can enter a default date value.
I should put a calendar. At the moment you need to enter in the SQL format.

If you want the current time, just instance the Creation Date Wizard, and link it to your field.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.128 seconds

Get Started