Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a time mask for validation

 
Gran Roguismo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to validate a time mask of the format HH:MM:SS:T
hour:minute:second:time(as in normal or daylight savings)
I see the dateformat rules in validation, but I don't understand how it works.
Where should I start?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start Here

use the date validation with the datePatternStrict.

See the user guide for more info.
[ March 30, 2005: Message edited by: Marc Peabody ]
 
Gran Roguismo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks marc, giving it a try now
 
Ken Loh
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc,

The mask uses some sort of regular expression. Is there somewhere which one can find out the syntax used ? Or does he need to refer to

http://www.unicode.org/unicode/reports/tr18/ or http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html ?

Cheers,
Ken

Originally posted by Marc Peabody:
Start Here

use the date validation with the datePatternStrict.

See the user guide for more info.

[ March 30, 2005: Message edited by: Marc Peabody ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic