lib/xml/mapping_extensions/date_node.rb
# Converts a `Date` object to an XML schema string
# @param value [Date] the value as a `Date`
# @return [String] the value as an XML Schema date string, without
#   time zone information unless {#zulu} is set
Converts a `Date` object to an XML schema string
Converts a ` Date ` object to an XML schema string
def to_xml_text(value)
        value = value.to_date if value.respond_to?(:to_date)
        text = value.iso8601 
        zulu && !text.end_with?('Z') ? "#{text}Z" : text
      end
def to_xml_text ( value ) value = value . to_date if value . respond_to? ( :to_date ) text = value . iso8601 zulu && ! text . end_with? ( 'Z' ) ? "#{text}Z" : text end
Converts a `Date` object to an XML schema string
Converts a ` Date ` object to an XML schema string
# use iso8601 instead of xmlschema in case of ActiveSupport shenanigans
the value as an XML Schema date string, without time zone information unless {#zulu} is set
the value as an XML Schema date string without time zone information unless { #zulu } is set
String
value
the value as a `Date`
the value as a ` Date `