• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating a time mask for validation

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks marc, giving it a try now
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]

 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic