on 2009 Sep 07 2:55 PM
Hi,
java.sql.Date format is m/d/yyyy.
I must use dd.mm.yyyy format.
How can it be done?
Thanks.
Request clarification before answering.
You can use the following line of code to change the date format
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy");
String formattedDate = formatter.format(<Ur java.sql.Date instance>);
Edited by: Santhosh Edla on Sep 7, 2009 5:00 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is SimpleDateFormat API link
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.