26.02.2011, 17:30
Quote:So there are 4 options:
- choosing one date/time format for all languages (not nice)
- staying with the Locale specific date/time format (nice for most users)
- choosing a specific date/time format for English and a Locale specific for all other languages (don't know if this is what most users want)
- doing the date/time stuff on my own (too expensive)
So, I'm kind of stuck...
Will this work?
import java.text.SimpleDateFormat;
import java.util.Date;
public class Main {
public static void main(String[] argv) throws Exception {
Date date = new Date();
SimpleDateFormat simpDate;
simpDate = new SimpleDateFormat("kk:mm:ss");
System.out.println(simpDate.format(date));
}
}
