About
Pricing
Community
Teams
Start Free Trial
Log in
bhomass
asked on
7/16/2008
Java SimpleDateFormat not working
I am formatting a Date object with SimpleDateFormat with format
M/d/yyyy h:mm:ss a
the result comes out as
2008-07-15 19:00:00.0
which is nothing like I expected.
what is wrong with my format?
Java
4
2
Last Comment
formula1act
8/22/2022 - Mon
Manish
7/16/2008
I think it should MM/dd/yyyy
Check here..
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Bart Cremers
7/16/2008
Could you post the code?
ASKER CERTIFIED SOLUTION
Dejan Pažin
7/16/2008
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
formula1act
7/17/2008
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Check here..
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html