Im looking for a java library that can check if given Date meets criteria given in string, for eg.:
Interface should look like:
public boolean checkDate(Date testDate, String criteria);
Java itself has rich Date and calendar API, you can check various examples on google.
here is one of them, http://www.vogella.de/articles/JavaDateTimeAPI/article.html
Also check Calendar API http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Calendar.html
For Date API check http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Date.html
我可以将内置的SimpleDateFormat与日历一起使用,也可以使用JodaTime。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.