Jump to content

Begin_Date and End_Date Validation


Guest Venkat

Recommended Posts

Guest Venkat

I have two elements, Namely<xs:element name="Begindate" type="xs:dateTime"/><xs:element name="Enddate" type="xs:dateTime" minOccurs="0"/>I should make sure the End date is always greater than the Begin date, If at all the End Date exist.Can any one help me to achieve this please?I tried as below, but could not succeded.<xs:element name="Begindate" type="xs:dateTime"/><xs:element name="Enddate" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:maxInclusive value=Begindate/> </xs:restriction> </xs:simpleType></xs:element>

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...