Method: RubyXL::LegacyCell#is_date?

Defined in:
lib/rubyXL/cell.rb

#is_date?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/rubyXL/cell.rb', line 13

def is_date?
  return false unless raw_value =~ /^\d+$/ # Only fully numeric values can be dates
  num_fmt = get_number_format
  num_fmt && num_fmt.is_date_format?
end