In Ruby how would I test if the date is `ISO 8601` type or not ?

require 'date'

Date.today.strftime("%V") # => "51"
Date.today.strftime("%U") # => "50"

Looking for a method say `#date_type`, which will tell us what kind of
date object it is.

Date.today.date_type # => 'ISO 8601'

-- 
Posted via http://www.ruby-forum.com/.