Sylar Sylar - 1 year ago 118
Ruby Question

Return Hash Date Value

I have an hash like this:

value = {Fri, 14 Oct 2016=>58.0}

How to return the date's value which is

Not much help from the docs.

Have tried
but that returns

Answer Source

If that key is a date object try

value[, 10, 14)]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download