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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...