001 // License: GPL. Copyright 2007 by Immanuel Scholz and others 002 package org.openstreetmap.josm.tools; 003 004 import java.text.ParseException; 005 import java.util.Date; 006 007 /** 008 * Tries to parse a date as good as it can. 009 * 010 * @author Immanuel.Scholz 011 */ 012 public class DateParser { 013 public static Date parse(String d) throws ParseException { 014 return new PrimaryDateParser().parse(d); 015 } 016 }