Created
May 9, 2019 10:29
-
-
Save jddeep/18831dce2f59c27ab2207c9aeef0e84b to your computer and use it in GitHub Desktop.
This file contains 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
public static Date getDateFromString(String date) { | |
SimpleDateFormat sf = new SimpleDateFormat("M/dd/yyyy"); | |
sf.setLenient(true); | |
try { | |
return sf.parse(date); | |
} catch (ParseException e) { | |
e.printStackTrace(); | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment