public static boolean isNowOrTodayFormat ( String value ) { boolean ret = false ; if ( value != null ) { String lowerValue = value . toLowerCase ( ) ; if ( lowerValue . length ( ) >= NOW_LENGTH && lowerValue . startsWith ( NOW ) ) { ret = true ; } else if ( lowerValue . length ( ) >= TODAY_LENGTH && lowerValue . startsWith ( TODAY ) ) { ret = true ; } } return ret ; }
Checks if date starts with NOW or TODAY .