class DBF::ColumnType::Date
Public Instance Methods
Source
# File lib/dbf/column_type.rb, line 76 def type_cast(value) value.match?(/\d{8}/) && ::Date.strptime(value, '%Y%m%d') rescue StandardError nil end
@param value [String]
# File lib/dbf/column_type.rb, line 76 def type_cast(value) value.match?(/\d{8}/) && ::Date.strptime(value, '%Y%m%d') rescue StandardError nil end
@param value [String]