1 package dolda.jsvc.util;
7 public final static DateFormat datefmt;
9 datefmt = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.ENGLISH);
10 datefmt.setCalendar(Calendar.getInstance(TimeZone.getTimeZone("UTC")));
13 public static String fmtdate(Date d) {
14 return(datefmt.format(d));
17 public static Date parsedate(String str) throws ParseException {
18 return(datefmt.parse(str));