on 09-07-2009 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.
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 |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.