How to inser value of datetime_select value in database


#1

hi all
how to insert datetime_select value in database.
i have two fields in my form.rhtml

can any body tell how i can get this value.
i used in controller
def insert
@order=Order.new(params[:stock])
if @order.save
render_text “record inserted”
end
end
but it only enter stock name not date time value