use this method to create new Strings appropriately.
public String substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string. The substring begins at the
specified beginIndex and extends to the character at index endIndex - 1.
ex)
String date = new String("19990802");
String year = date.substring(0,3);
String month = date.substring(4,5);
String day = date.substring(6,7);
"Rimma" <[EMAIL PROTECTED]> wrote:
>
>Hello my forum pals!
>Could anybody suggest me an easy way to parse a string Date in format "19990802"?
>Basically, what I need to do is take a string "1999", "08" and "02" separately and
>then
>manipulate them a bit. I just don't know the exact code for parsing the string.
>Thanks,
>Rimma
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]