Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bonetechnologies/1dc60804fa5a7ecc470aec823e32ed5b to your computer and use it in GitHub Desktop.
Save bonetechnologies/1dc60804fa5a7ecc470aec823e32ed5b to your computer and use it in GitHub Desktop.
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