I have a row that looks like the following (in a .xls):
bob abc 6/14/14 8:23
I want to return the date and time as: 61414823
I tried to get started with:
def self.regex_date
_test_column = @sheet.row(1)[2].date
...
end
Which I read about here: How to retrieve date properly using spreadsheet gem in ruby
But I'm getting the following error, before I can get to the regex part:
in `regex_date': undefined method `date' for #<DateTime:0x007f94e111b700> (NoMethodError)