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 719d6e2..56a88ce 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