diff flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java @ 2588:7dd45896e941

Issue 459. Use a longer dateformat to display the complete year. flys-artifacts/trunk@4144 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 15 Mar 2012 10:32:50 +0000
parents ff558d0332e2
children 4c00cf83fff1
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java	Thu Mar 15 10:30:03 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java	Thu Mar 15 10:32:50 2012 +0000
@@ -86,6 +86,15 @@
 
 
     /**
+     * Returns a date formatter with MEDIUM style.
+     */
+    public static DateFormat getMediumDateFormat(CallContext cc) {
+        Locale locale = Resources.getLocale(cc.getMeta());
+        return DateFormat.getDateInstance(DateFormat.MEDIUM, locale);
+    }
+
+
+    /**
      * Returns the number formatter for kilometer values in waterlevel exports.
      *
      * @return the number formatter for kilometer values.

http://dive4elements.wald.intevation.org