Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 343b6c57 authored by tibbi's avatar tibbi
Browse files

add some date formats for checking birthdays/anniversaries

parent 9365b268
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.4.5'
        propVersionName = '3.4.11'
        kotlin_version = '1.2.10'
        support_libs = '27.0.2'
    }
+15 −0
Original line number Diff line number Diff line
@@ -97,3 +97,18 @@ val PERMISSION_WRITE_CONTACTS = 6
val PERMISSION_READ_CALENDAR = 7
val PERMISSION_WRITE_CALENDAR = 8
val PERMISSION_CALL_PHONE = 9

fun getDateFormats() = arrayListOf(
        "yyyy-MM-dd",
        "yyyyMMdd",
        "yyyy.MM.dd",
        "yy-MM-dd",
        "yyMMdd",
        "yy.MM.dd",
        "yy/MM/dd",
        "MM-dd",
        "--MM-dd",
        "MMdd",
        "MM/dd",
        "MM.dd"
)