From e58a4542d0054772b1939b3eeb1b97f1384c60e6 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Apr 2019 07:08:23 +0300 Subject: [PATCH] global method for format dates in ISO format (y-m-d) --- app/src/main/java/net/ktnx/mobileledger/utils/Globals.java | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5