Determinar si una fecha es menor a otra en Java - Código Fuente

Función que determina de dos fechas cual es menor.

El siguiente código analiza cual de dos fechas dadas es menor. Estas fechas vienen dadas en el formato 'dd/mm/yyyy'

Licencia

import java.util.Calendar;
import java.util.Date;

public static boolean isMenor(String fecha_inicial, String fecha_final)
{
  Calendar cal_inicial = Fecha.getCalendarFromDateHum(fecha_inicial);
  Calendar cal_final = Fecha.getCalendarFromDateHum(fecha_final);
  return cal_inicial.before(cal_final);
}

Al final retorna el valor de la evaluación del método before del Calendar inicial.

Colaboradores
Knel Ast
Derechos
/******************************************************************************* * @license Copyright (C) 2004-2020 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * *******************************************************************************/