date

Top  Previous  Next

- dateFormat* (mssql:datetime|mssql:datetime2|xsd:datetime|xsd:date|xsd:time|<java.text.SimpleDateFormat>)

- timeZone <id> (UTC|GMT|CST|EST|PST|<java.util.TimeZone.getID()>)

 

Attributes

 

dateFormat: choose from one of the supplied date formats (examples below) or supply your own java.text.SimpleDateFormat

 

mssql:datetime = 2012-01-01 00:29:47.733

mssql:datetime2 = 2012-01-01 00:29:47.733

 

xsd:dateTime = 2012-05-26T00:00:00

xsd:date = 2001-10-26

xsd:time = 21:32:52

 

timeZone: id from one of the supported java.util.TimeZones

 

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.domain.domain.programbroadcast">
  <ProgramBroadcast>
    <ProgramDetails>
      <Ratings type="string" minLength="0" maxLength="0"></Ratings>
      <DegreeOfViolence parent="Ratings" type="set" values="1,2,3,4,5">1</DegreeOfViolence>
      <StrengthOfLanguage parent="Ratings" type="integer">5</StrengthOfLanguage>
      <AdultThemes parent="Ratings" type="integer">0</AdultThemes>
      <ProgramTitle type="string" maxLength="255" unless="SeriesTitle">The XML Saga</ProgramTitle>
      <SeriesTitle type="string" maxLength="255" unless="ProgramTitle">The XML Saga</SeriesTitle>
      <EpisodeTitle type="string" if="EpisodeNumber,EpisodeSeason">Schema Wars</EpisodeTitle>
      <EpisodeSeason type="integer" if="EpisodeTitle,EpisodeNumber">5</EpisodeSeason>
      <EpisodeNumber type="integer" if="EpisodeTitle,EpisodeSeason">5</EpisodeNumber>
      <Description type="string">The inadequacy of the &lt;name&gt;DTD&lt;/name&gt;
proposals for a new &lt;Stress&gt;schema&lt;/Stress&gt; language, which led to the advent
of the XML Schema language standard, Schematron, RelaxNG, and others.</Description>
   </ProgramDetails>
   <BroadcastDetails>
     <Country type="string" minLength="2" maxLength="2" regex="[A-Z]+">UK</Country>
      <Channel type="set" values="BBC,BBC 2">BBC 2</Channel>
      <Date type="date" format="yyyy-MM-dd">2002-07-21</Date>
      <StartTime type="date" format="hh:mm" minLength="5" maxLength="5">09:00</StartTime>
      <EndTime type="date" format="hh:mm" minLength="5" maxLength="5">20:00</EndTime>
    </BroadcastDetails>
  </ProgramBroadcast>
</schema>