ExpressionFunctions { public static Long daysBetween( String start, String end ) { LocalDate st = LocalDate.parse( start, DATE_FORMAT ); LocalDate en = LocalDate.parse( end, DATE_FORMAT ); return ChronoUnit.DAYS.between( st, en ); }  static Double zing( Number value ); static Double oizp( Number value ); static Integer zpvc( Number... values ); static Object condition( String condititon, Object trueValue, Object falseValue ); static Long daysBetween( String start, String end ); static Long monthsBetween( String start, String end ); static Long yearsBetween( String start, String end ); static boolean hasValue( Object value ); static final String NAMESPACE; }
@Test public void testDaysBetween() { assertEquals( new Long( 1 ), ExpressionFunctions.daysBetween( "2014-03-04", "2014-03-05" ) ); assertEquals( new Long( 32 ), ExpressionFunctions.daysBetween( "2015-04-04", "2015-05-06" ) ); }