Search:

Type: Posts; User: scottyadam

Search: Search took 0.11 seconds.

  1. [SOLVED] Java program to sort arrays containing dates

    Hi There:

    I have an array of strings which will contain a date in the following order DD-MM-YYYY and what I would really like to do is SORT that array. What I am currently doing is:

    ...
  2. Re: Reading in a date and validating it with proper calendar regex

    This is what I ended up doing...




    String VALID_DATE_REGEX = "(0[1-9]|[12][0-9]|3[01])[-](0[1-9]|1[012])[-](20\\d\\d)";

    Pattern DATE_PATTERN = Pattern.compile(VALID_DATE_REGEX);

    String...
  3. Java program for reading in a date and validating it with proper calendar regex including leap year and months

    Hello everyone:

    I have almost finished my java school assignment and am now going for the bonus task which is to (when I read in a date from the user) I must validate it not only in the correct...
Results 1 to 3 of 3