The uppercase Ys used in SimpleDateFormat at line 230, throws the exception: " Uknown pattern character 'Y' " in the APIs 22 and 23, as you can see in the link below the character Y is supported by API 24+, so the Ys should be replaced by lowercases.
The uppercase Ys used in SimpleDateFormat at line 230, throws the exception: " Uknown pattern character 'Y' " in the APIs 22 and 23, as you can see in the link below the character Y is supported by API 24+, so the Ys should be replaced by lowercases.
https://developer.android.com/reference/java/text/SimpleDateFormat.html