public static int compare ( Date left , String right ) throws PageException { if ( Decision . isNumber ( right ) ) return compare ( left . getTime ( ) / 1000 , Caster . toDoubleValue ( right ) ) ; DateTime dt = DateCaster . toDateAdvanced ( right , DateCaster . CONVERTING_TYPE_OFFSET , null , null ) ; if ( dt != null ) { return compare ( left . getTime ( ) / 1000 , dt . getTime ( ) / 1000 ) ; } return Caster . toString ( left ) . compareToIgnoreCase ( right ) ; }
compares a Date with a String