]> git.ktnx.net Git - mobile-ledger.git/commitdiff
global method for format dates in ISO format (y-m-d)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Apr 2019 04:08:23 +0000 (07:08 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Apr 2019 04:08:23 +0000 (07:08 +0300)
app/src/main/java/net/ktnx/mobileledger/utils/Globals.java

index 719d6e20018dab9f26e8f2632e1dfca559444409..56a88ceca9fa70ef8d4f4de91f76c0a16df869eb 100644 (file)
@@ -88,4 +88,7 @@ public final class Globals {
     public static String formatLedgerDate(Date date) {
         return dateFormatter.get().format(date);
     }
+    public static String formatIsoDate(Date date) {
+        return isoDateFormatter.get().format(date);
+    }
 }
\ No newline at end of file