Author
Creating a time mask for validation
Gran Roguismo
Ranch Hand
Joined: Mar 10, 2005
Posts: 77
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?
EOL
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
Start Here use the date validation with the datePatternStrict. See the user guide for more info. [ March 30, 2005: Message edited by: Marc Peabody ]
A good workman is known by his tools.
Gran Roguismo
Ranch Hand
Joined: Mar 10, 2005
Posts: 77
thanks marc, giving it a try now
Ken Loh
Ranch Hand
Joined: Feb 16, 2005
Posts: 190
posted Apr 04, 2005 00:56:00
0
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 ]
subject: Creating a time mask for validation