This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello, i want to check the date, f.e. 1979.12.12 which is written from a user in to a grafical window. It must be in this order yyyy.mm.dd because it's met to be written in a jdbc (mysql) database. How can i check that the date is written right (numbers, not letters and in right oder)?
First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Joke names and "handles" aren't acceptable. You'll find that many Ranchers won't be interested in helping you until you follow this rule.
You can change your display name here. Thanks for your cooperation.
I've written a DateChooser class once, similar to javax.swing.ColorChooser (you need JGoodies Forms for the layout - feel free to edit if you don't want the library): Alternatively, but this does not work with all formats (unfortunately yyyy.MM.dd is not supported), you can use a JSpinner for it:If you double click on the year, month or date part of this spinner you can use the spinner's buttons to change only that part. With yyyy.MM.dd it can only change the year.
[ November 16, 2005: Message edited by: Rob Spoor ] [ November 16, 2005: Message edited by: Rob Spoor ]