class DateTimeUtilities {

    public static Date parse(DateFormat dateFormat, String source) throws ParseException
    {
        Date date = dateFormat.parse(fixMillis(source));
        if (dateFormat instanceof SimpleDateFormat)
        {
            date = reducePrecision((SimpleDateFormat)dateFormat, date);
        }
        return date;
    }

    private  DateTimeUtilities();

}