1

I am new in Java programming language and I want to constrain the user to input dates in this format pattern only (dd/mm/yyyy). I am using Java Swing controls for drag and drop. please help.

Ole V.V.
  • 81,772
  • 15
  • 137
  • 161
Emmanuel
  • 11
  • 3
  • 1
    Does this answer your question? [how to make a jtextfield having a fixed date format?](https://stackoverflow.com/questions/12655811/how-to-make-a-jtextfield-having-a-fixed-date-format) – smithnblack Apr 26 '20 at 08:45
  • I warmly recommend that you use java.time, the modern Java date and time API, for your date work. Since none of the old answers to the linked original question touched on this, I wrote [a new answer for you here](https://stackoverflow.com/a/61446403/5772882). – Ole V.V. Apr 26 '20 at 19:03

0 Answers0