converting String ex. 08/06/2006 to an integer.
I have this string for example 08/06/2005how do i convert it to an integer?
[89 byte] By [
Fez_0a] at [2007-11-27 0:36:36]

well, you could use a SimpleDateFormat to create an instance of Date from the string and then call the getTime method on that Date instance. However, that gives you a long rather then an int. Not sure what your requirement is for getting it as an int...
Do you mean 08062005 ?And if it is a number, it would be no leading zero, right ?Otherwise, you just need a string without the slashes ?
rym82a at 2007-7-11 22:46:06 >

> Do you mean 08062005 ?> > And if it is a number, it would be no leading zero,> right ?> Otherwise, you just need a string without the slashes> ?Right. Numbers don't have leading zeroes.
jverda at 2007-7-11 22:46:06 >

> Let me make a guess, you don't want to change it to> an integer but would like to change the data> representation format to ddMMyyyy ?He's been sending some conflicting messages. It's not clear whether he wants the int 8062006 or the String "08062006".
jverda at 2007-7-11 22:46:06 >
