• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to define custom data type in Schema

 
Pradeep Sahoo
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to define my customised data type for date.
My requirement is that the date format for a field named "ExpiryDate" should be in MMYY format. How can I specify so in W3C Schema ?
Thanks in advance
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might consider -

And the data looks like -

It's not exactly what you asked for
Cheers,
Dan
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

put an extra space between : and pattern for a well known reason.
[ October 16, 2002: Message edited by: Roseanne Zhang ]
 
Pradeep Sahoo
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roseanne,
But I do not know the reason for the extra space !!!
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because in JavaRanch ':' followed by a 'p' w/o space will become a . Try it by yourself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic