content: /*
  
  (C) Copyright 2017 Alberto Fernández <infjaf@gmail.com>
  
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 3.0 of the License, or (at your option) any later version.
  
  This library 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
  Lesser General Public License for more details.
  
  You should have received a copy of the GNU Lesser General Public
  License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  
  */
  package com.linuxense.javadbf.testutils;
  
  import java.util.Calendar;
  import java.util.Date;
  
  public class DateUtils {
  
  	public static Date createDate(int year, int month, int day) {
  		Calendar c = Calendar.getInstance();
  		c.set(Calendar.YEAR, year);
  		c.set(Calendar.MONTH, month  - 1);
  		c.set(Calendar.DAY_OF_MONTH, day);
  		c.set(Calendar.HOUR_OF_DAY, 0);
  		c.set(Calendar.MINUTE, 0);
  		c.set(Calendar.SECOND, 0);
  		c.set(Calendar.MILLISECOND, 0);
  		return c.getTime();
  	}
  }
  