Jump to content
Register now for free to get your favorite username before it is gone! ×

How to Check Valid in Java - Javatpoint


How to Check Valid Date in Java - Javatpoint

Every time we receive data for an application, we must ensure that it is accurate before continuing with any further processing.

We might have to confirm the following while dealing with date inputs:

  • The date is present in the input in a suitable format, such as MM/DD/YYYY.
  • The various components of the input are inside a valid range.
  • The input returns an appropriate calendar date.

We could accomplish the above using regular expressions. However, regular expressions are difficult and susceptible to error when handling different input formats and locales. They may also cause performance to suffer.

 

Read about more...

Could contain: Advertisement, Poster, Text, Nature, Outdoors

0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy before using this site., We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.