Joget DX Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Skip to end of metadata
Go to start of metadata


  • org.joget.commons.util.DateUtil
  • Under wflow-commons module
  • Utility methods to deal with date value

Code Sample

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.

  • No labels