Answer the question
In order to leave comments, you need to log in
How to add time to datetime ruby?
params[:event][:start_time] =params [:event][:start_time] + 1.day
params[:event][:end_time] = params[:event][:start_time] + 1.day
no implicit conversion of Symbol into Integer
Answer the question
In order to leave comments, you need to log in
1318996912 if time passes in this form, then do this
if in a different format, here is the dock by the method apidock.com/ruby/DateTime/strptime/class
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question