Does joda use time ( http://joda-time.sourceforge.net/ ) question? If not, then I would heartily recommend using this wonderful library instead of the cumbersome Java API.
If not, you can use DateFormat.getDateTimeInstance(int, int, Locale)
The first int is the style for the hour, the other is the style for the time, so try using:
DateFormat f = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.getDefault()); String formattedDate = f.format(new Date()); System.out.println("Date: " + formattedDate);
See if this suits you.
Exit for Locale.GERMANY: Date: 07/25/13 10:57
Exit for Locale.US: Date: 7/25/13 10:57 AM
source share