| Author |
SimpleDateFormat Problem
|
Kassi Hill
Greenhorn
Joined: Sep 29, 2003
Posts: 24
|
|
I am trying to format a string using the SimpleDateFormat method and it is not working. I was hoping that someone more experienced could point out my problem. Thank you. private String assignDate; public void setAssignDate(String aDate){ try{ SimpleDateFormat fdate = new SimpleDateFormat("MM-DD-YY"); assignDate = fdate.format(aDate); }catch (Exception e){} }
|
 |
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
|
|
|
Consult the SimpleDateFormat API, and see what is the difference between m and M, d and D, y and Y, etc.
|
"I'm not back." - Bill Harding, Twister
|
 |
 |
|
|
subject: SimpleDateFormat Problem
|
|
|