Represents the data type Date.

Public Instance methods
filter_set( value )

Values are filtered by this function when being set. Returns ruby‘s Date or tries to build a Date from a String. Raises ConversionError if the given value cannot be parsed.

# File lib/momomoto/datatype/date.rb, line 13
      def filter_set( value )
        case value
          when nil,'' then nil
          when ::Date then value
          when String then ::Date.parse( value, '%Y-%m-%d' )
          else raise Error
       rescue => e 
        raise ConversionError, "parse Error in Date #{e}"