Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
Code Block | ||
---|---|---|
| ||
import org.joget.commons.util.DateUtil;
String dateValue = "2015-06-01";
String format = "yyyy-MM-dd";
//check the format
boolean valid = DateUtil.validateDateFormat(dateValue, format); |
public static boolean compare(String start, String end, String format)
To check an end date is after a start date. Format following syntax of java.text.SimpleDateFormat.
public static boolean validateDateFormat(String value, String format)
To validate a date value is in correct date format. Format following syntax of java.text.SimpleDateFormat.