11 Replies Latest reply: Dec 7, 2009 6:26 PM by jschellSomeoneStoleMyAlias RSS

    StringTokenizer eeeeek now have a date

    843789
      I think i may have taken the wrong path by using StringTokenizer, emphasis on String here which gets me worried, but hopefully you guys know a simple solution.

      Im splitting a text file into tokens, which is just a list of first name lastname, address etc but then there is a date (dd/mm/yyyy). which where it all goes wrong.
      for all the other tokens I have been using " variable = tokenizer.nextToken();" but this wont work for a date as its not a string. Ive declared the date variable as so:
      static Date dateOb.

      any help or usful links will be most appreciated.
      thankyou