A
Alex
Hello everyone,
I'm having a problem with the Date object and I need an example. I
have a string, say for example, 01/31/98.I parse that string to a date
object and As a Date object that shows:
CODE:
SimpleDateFormat fmt = new SimpleDateFormat("MM'/'dd'/'yy");
Date date = fmt.parse("01/31/98");
System.out.println(date);
OUTPUT:
Sat Jan 31 00:00:00 EST 1998
I don't want the "00:00:00 EST" when i do a System.out.println of that
date object. I mean i could always parse it
but i'd be left with a string version of the date object, when really
I want the sole Date returned without the "00:00:00 EST" as of type
Date, and not String. Once the "00:00:00 EST" is gone, if i do
System.out.println(dateobject), it should print out just "Sat Jan 31
1998" Is there anyone out there with suggestions? Thanks a lot.
Alex
I'm having a problem with the Date object and I need an example. I
have a string, say for example, 01/31/98.I parse that string to a date
object and As a Date object that shows:
CODE:
SimpleDateFormat fmt = new SimpleDateFormat("MM'/'dd'/'yy");
Date date = fmt.parse("01/31/98");
System.out.println(date);
OUTPUT:
Sat Jan 31 00:00:00 EST 1998
I don't want the "00:00:00 EST" when i do a System.out.println of that
date object. I mean i could always parse it
but i'd be left with a string version of the date object, when really
I want the sole Date returned without the "00:00:00 EST" as of type
Date, and not String. Once the "00:00:00 EST" is gone, if i do
System.out.println(dateobject), it should print out just "Sat Jan 31
1998" Is there anyone out there with suggestions? Thanks a lot.
Alex