Jump to content
Sign in to follow this  
DJViking

Using A Custom Datetime Pattern

Recommended Posts

I have a problem with a dateTime element of my schema. It will not accept my dateTime patternError message:

cvc-pattern-valid: Value '18.11.2011 01:00:00.000' is not facet-valid with respect to pattern 'DD.MM.YYYY hh:mm:ss.SSS' for type 'DateTime'
<xs:element name="modifiedTime" type="DateTime" /><xs:simpleType name="DateTime">   <xs:restriction base="xs:dateTime">     <xs:pattern value="DD.MM.YYYY hh:mm:ss.SSS" />   </xs:restriction></xs:simpleType>

If I remove the simpleType and just use dateTime as type on the element the following dateTime pattern is required and works:YYYY-MM-DDThh:mm:ssI want to use the pattern DD.MM.YYYY hh:mm:ss.SSS. How can I configure that in my schema?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...