Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails loop through datetime

start_date = Date.parse('2013-03-12')
end_date = Date.parse('2013-11-20')

(start_date..end_date).each do |day|
  puts day
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #loop #datetime
ADD COMMENT
Topic
Name
5+6 =