Sha256: 24faebfea892d5b49e0637ff135b8ea22e7ee3f52c94b753a1cda5bec158f8d6
Contents?: true
Size: 419 Bytes
Versions: 22
Compression:
Stored size: 419 Bytes
Contents
module ETL #:nodoc: module Transform #:nodoc: # Transform a String representation of a date to a Date instance class StringToDateTransform < ETL::Transform::Transform # Transform the value using Date.parse def transform(name, value, row) return value if value.nil? begin Date.parse(value) rescue => e return value end end end end end
Version data entries
22 entries across 22 versions & 9 rubygems