Created
January 4, 2016 14:42
-
-
Save mizanRahman/f5cddac299a45a85a5b5 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
| public static void testWithJoda() { | |
| String dateString = "160104"; | |
| DateTimeFormatter formatter = DateTimeFormat.forPattern("yyMMdd"); | |
| DateTime dateTime = formatter.parseDateTime(dateString); | |
| long millis = dateTime.getMillis(); | |
| boolean after = DateTime.now().isAfter(millis); | |
| System.out.println(after); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DateTime from jodatime