There are dates like:
November 7, 2006
I tried this:
begin date = Date.parse('7 ноября 2006') rescue ArgumentError date = nil end But at the output I get null.
How to parse them in Ruby?
There are dates like:
November 7, 2006
I tried this:
begin date = Date.parse('7 ноября 2006') rescue ArgumentError date = nil end But at the output I get null.
How to parse them in Ruby?
Source: https://ru.stackoverflow.com/questions/589847/
All Articles
String#gsub) to translate into English, and the problem is solved. If you write, you can post the answer yourself :) - D-side.grep(' ', '/'). - Colibri