• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic