• 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

How to set the Date field in Swings

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,

I am working on swings.

will you please suggest me to create a Date TextField, which should have the following properties:

1) The text field should look like --/--/----(MM/DD/YYYY).

2) When i enter a digit in the first placeholder of MM, and if that digit
is more than 1 then that placeholder should be filled with 0 (zero).
what I mean is if we enter a digit in any placeholder and if that
digit is invalid for that placeholder then that placeholder should be
defaultly filled with zero.

I request you to please give the solution as early as possible and i eagarly wait for your reply.

by
Yugandhar Akkaldevi
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by yugan akkaldevi:
Hai,

I am working on swings.

will you please suggest me to create a Date TextField, which should have the following properties:

1) The text field should look like --/--/----(MM/DD/YYYY).

2) When i enter a digit in the first placeholder of MM, and if that digit
is more than 1 then that placeholder should be filled with 0 (zero).
what I mean is if we enter a digit in any placeholder and if that
digit is invalid for that placeholder then that placeholder should be
defaultly filled with zero.

I request you to please give the solution as early as possible and i eagarly wait for your reply.

by
Yugandhar Akkaldevi



Well this is not a homework solving forum....

First you show us till now where have you been got stucked.

Then only we can advice you.. what to do....

best of luck for your try
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
save yourself a lot of grief, use a datePicker
 
reply
    Bookmark Topic Watch Topic
  • New Topic