public Stats getStatsByModeAndDate(int mode, long date, Stats defaultStats)
	{
		if(date < 0)
			return defaultStats;
		try
		{
			HashMap<Long, Stats> stats = getAllStats(mode);
			for(Stats stat : stats.values())
			{
				String temp = String.valueOf(stat.getDate());
				String tempp = String.valueOf(date);
				if(temp.substring(0, temp.length() - 4).equals(tempp.substring(0, tempp.length() - 4)))
					return stat;
			}
		}
		catch(Exception e)
		{
			Utils.logger.log(Level.WARNING, "", e);
		}
		return defaultStats;
	}