bhomass
asked on
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?
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?
Could you post the code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check here..
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html