Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
JSP
Date
Joey Alencar
Ranch Hand
Posts: 43
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'd like to know how can I check if a date is valid.
(Ex: 30-FEB-01; Date is invalid).
Thanks.
Peter den Haan
author
Posts: 3252
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If java.text.DateFormat.getDateInstance().parse(dateString) throws a ParseException, it's not a valid date...
- Peter
Peter den Haan
| peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Joey Alencar
Ranch Hand
Posts: 43
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Could you give one example using the format "DD/MM/YYYY"?
Thanks.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Invalid Date
Double is null?
Fetch direction
Float Number
Got it!!!!!!!
More...