From: Damyan Ivanov Date: Thu, 4 Apr 2019 04:08:23 +0000 (+0300) Subject: global method for format dates in ISO format (y-m-d) X-Git-Tag: v0.9~19 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=e58a4542d0054772b1939b3eeb1b97f1384c60e6;p=mobile-ledger.git global method for format dates in ISO format (y-m-d) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Globals.java b/app/src/main/java/net/ktnx/mobileledger/utils/Globals.java index 719d6e20..56a88cec 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Globals.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Globals.java @@ -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