// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.*;
import java.text.*;

public class TimeCvt {
   public static void main(String[] args) throws Exception {
      String s = "12/31/2003 at 20:53";
      DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm");
      Date d = df.parse(s.replaceAll(" at ", " "));
      long t = d.getTime();
      System.out.println(t);
      System.out.println(new Date(t));
   }
}
