Results 1 to 2 of 2
Thread: Calendar language problem
- 10-27-2008, 03:03 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 5
- Rep Power
- 0
Calendar language problem
hi I have this method
private void processPeriod(int per_id, String str) {
String s[] = str.split(",");
Calendar ts = GregorianCalendar.getInstance();
SimpleDateFormat d = new SimpleDateFormat("dd:MM:yyyy HH:mm:ss");
try {
ts.setTimeInMillis(d.parse(s[0] + s[1]).getTime());
} catch (ParseException pe) {
pe.printStackTrace();
}
Period period = new Period();
period.setId(per_id);
period.setTimestamp(ts);
period.setDuration(Integer.parseInt(s[2].trim()));
period.setPenalty(Integer.parseInt(s[3].trim()));
periods.add(period);
}
whitc takes from a file this string "15:12:2005, 07:55:00, 180, 0" and save it i a period instance. The problem is that when I try to show these data in a table it shows them in Greek and not in English...
for ex. 15:12:2005 is 15 Δεκεμβριος 2005 instead of 15 December 2005
any solution??
- 10-27-2008, 10:00 PM #2
Similar Threads
-
calendar
By John in forum SWT / JFaceReplies: 12Last Post: 08-07-2008, 10:54 PM -
How to use Calendar class
By JavaBean in forum Java TipReplies: 1Last Post: 06-26-2008, 03:09 PM -
How to Show Calendar
By praveen.kb in forum AWT / SwingReplies: 2Last Post: 02-09-2008, 08:23 AM -
Problem with calendar
By Felissa in forum Advanced JavaReplies: 2Last Post: 07-01-2007, 08:39 PM -
Web calendar
By Daniel in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 06-27-2007, 05:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks