Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB