• 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

Limiting the i/p for Date/time in a MaskedTextfield

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have a Maskedtextfield formatted to accept the Date & time Data type. Now, I'm already having some Date and Time set in the Text Field. Suppose, the user wants to keyin some Date and Time, I need to bring up a Calender from which the user can select the Date and Time
OR
How do I format my Textfield to accept Date & Time :
Right now the format is yyyy/mm/dd => So, how do I restrict the user's i/p to yyyy => 9999 max, mm => 12 max, 1 min , dd => 31 max and 1 min
Right now the format is hh/mm/ss/ms => So, how do I restrict the user's i/p to hr => 1min, 12 max, mm => 1min, 60max, ss => 1min, 60 max, ms => 1min and 60max.
I'd greatly appreciate your help. I'm a beginner here and I'd really need the inputs from you guys.
Thanks
Meghna
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since no one has replied previously, I am throwing in my
(dumb, if you want to call it so) ideas here..........
For limiting Dates (what did you think ), I have very
frequently noticed on the web that they use a Drop Down
Box. Sometihng like what you find in here: http://travel.priceline.com/
This is a very famous implementation which most users are
used to.
Just my suggestion..............one way to acheive it!
regds.
- satya
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Madhav
But the format that's wanted for the Date and Time is yyyy/mm/dd hh/mm/ss/ms. Yes, life would've been much easier if I tried it the way you've suggested me .. In fact, its much faster, but the requirement is that the moment I need to change in the Date, a calender should pop up and the user should be able to select the date in the above format. All I need to know now is for the format I've already done, how do I restrict the user to the date and time to their respective max and min values.
Please do fill me in if you find some solution.
Thanks
Meghna
 
reply
    Bookmark Topic Watch Topic
  • New Topic