Feel free to accept @JanDvorak's answer but you could do this as well
arry = ["06-01-2014", "07-04-2014", "14-01-2014","14-04-2014", "16-01-2014", "27-03-2014","30-12-2013", "31-03-2014", "27-02-2014"]
first_five = arry.shift(5)
#=> ["06-01-2014", "07-04-2014", "14-01-2014", "14-04-2014", "16-01-2014"]
arry
#=> ["27-03-2014","30-12-2013", "31-03-2014", "27-02-2014"]
or non-destructively (maintaining arry)
arry = ["06-01-2014", "07-04-2014", "14-01-2014","14-04-2014", "16-01-2014", "27-03-2014","30-12-2013", "31-03-2014", "27-02-2014"]
first_five,rest = arry.partition.with_index{|a,i| i < 5}
first_five
#=> ["06-01-2014", "07-04-2014", "14-01-2014", "14-04-2014", "16-01-2014"]
rest
#=> ["27-03-2014","30-12-2013", "31-03-2014", "27-02-2014"]
arry
#=> ["06-01-2014", "07-04-2014", "14-01-2014", "14-04-2014", "16-01-2014","27-03-2014", "30-12-2013", "31-03-2014", "27-02-2014"]
arry[0..5]andarry[6..-1]?arry[5..-1]works great. thanks add it as an answer so I can give you credit.arry. No reply req'd, as I'll delete this after you've done the edit. You should always run the code you post to make sure it's working.