def dateValue=(val)
        if val.class == Array
            val = val.first
        end  
        if(!val.nil? && val.length > 0)