• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ActiveRecord & inserting dates

#4
[eluser]Yash[/eluser]
set created field as datetime type

now use this code
Code:
date('Y-m-d H:i:s')
for inserting date. It will give you current date and time.


Messages In This Thread
ActiveRecord & inserting dates - by El Forum - 07-01-2008, 05:02 AM
ActiveRecord & inserting dates - by El Forum - 07-01-2008, 05:42 AM
ActiveRecord & inserting dates - by El Forum - 07-01-2008, 06:31 AM
ActiveRecord & inserting dates - by El Forum - 07-01-2008, 06:35 AM
ActiveRecord & inserting dates - by El Forum - 07-01-2008, 06:48 AM
ActiveRecord & inserting dates - by El Forum - 07-08-2008, 07:44 PM
ActiveRecord & inserting dates - by El Forum - 07-09-2008, 12:38 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.