Created
May 13, 2016 16:17
-
-
Save bonetechnologies/1dc60804fa5a7ecc470aec823e32ed5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] dateOfBirthList = dateOfBirth.split("T00:00:00Z"); | |
dateOfBirth = dateOfBirthList[0]; | |
if (dateOfBirth.length() == 10) { | |
dateOfBirthList = dateOfBirth.split("-"); | |
String year = dateOfBirthList[0]; | |
String month = dateOfBirthList[1]; | |
String day = dateOfBirthList[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment