posted 20 years ago
Hi,
I had a doubt in NumberFormat to display the US currency.It was cleared through javaranch.
Now I have a doubt in DateForamt...
I am using Oracle data base to store the date.
In data base the stored date is fetched as "2005-01-06 04:28:42.0"
Is that possible to display the sais date in "Jan 6, 2005" format.
I tried the following code:
sodate is a arraylist:
The datestring variable stores the value "2005-01-06 04:28:42.0"
DateFormat df=DateFormat.getDateInstance(DateFormat.MEDIUM,Locale.US);
Date date2 = df.parse(datestring);
out.println(df.format(date2));
I got the ParseException...
How to solve this..