1 package org.starobjects.tested.fitnesse.internal;
2
3 import java.text.ParseException;
4 import java.text.SimpleDateFormat;
5 import java.util.Date;
6
7 public class JavaUtilDateParser {
8 public java.util.Date parse(final String dateStr) {
9 try {
10 final SimpleDateFormat parser = new SimpleDateFormat(
11 "d MMM yyyy hh:mm");
12 final Date parsed = parser.parse(dateStr);
13 return parsed;
14 } catch (final ParseException e) {
15 return null;
16 }
17 }
18
19 }