How to get exact start date and end date of every quarter of a given year in Ruby
Posted
by kgpdeveloper
on Stack Overflow
See other posts from Stack Overflow
or by kgpdeveloper
Published on 2010-04-20T10:55:50Z
Indexed on
2010/04/20
11:13 UTC
Read the original article
Hit count: 261
ruby
|ruby-on-rails
I need to get the exact start and end dates (month, day and year) of a given year.
E.g., 2008 Jan. 1, 2008 Mar, 30, 2008
Any thoughts on how to do this?
array = [2007, 2008, 2009, 2010]
array.each do |a|
#code to get array of date for a (year)
end
© Stack Overflow or respective owner