dimanche 28 août 2016

How to get all 'specific days' within a date range

How can I get let's say All the dates for Saturday and Sunday from X year to Y year and store them as array?

pseudo code would be

(year_today..next_year).get_all_dates_for_saturday_and_sunday

Or perhaps there are gems that cater to this already?

Aucun commentaire:

Enregistrer un commentaire