import java.text.*;
import java.util.*;
public class Main {
public static void main
(String[] args
) { String toParse
= myDate
+ " " + myTime
; // Results in "2-5-2012 20:43" try {
Date date
= formatter.
parse(toParse
); // You will need try/catch around this long millis = date.getTime();
pe.printStackTrace();
}
}
}
aW1wb3J0IGphdmEudGV4dC4qOwppbXBvcnQgamF2YS51dGlsLio7CgpwdWJsaWMgY2xhc3MgTWFpbiB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU3RyaW5nIG15RGF0ZSA9ICIyLTUtMjAxMiI7CiAgICAgICAgU3RyaW5nIG15VGltZSA9ICIyMDo0MyI7CiAgICAgICAgU3RyaW5nIHRvUGFyc2UgPSBteURhdGUgKyAiICIgKyBteVRpbWU7IC8vIFJlc3VsdHMgaW4gIjItNS0yMDEyIDIwOjQzIgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFNpbXBsZURhdGVGb3JtYXQgZm9ybWF0dGVyID0gbmV3IFNpbXBsZURhdGVGb3JtYXQoImQtTS15eXl5IGhoOm1tIik7IC8vIEkgYXNzdW1lIGQtTSwgeW91IG1heSByZWZlciB0byBNLWQgZm9yIG1vbnRoLWRheSBpbnN0ZWFkLgogICAgICAgICAgICBEYXRlIGRhdGUgPSBmb3JtYXR0ZXIucGFyc2UodG9QYXJzZSk7IC8vIFlvdSB3aWxsIG5lZWQgdHJ5L2NhdGNoIGFyb3VuZCB0aGlzCiAgICAgICAgICAgIGxvbmcgbWlsbGlzID0gZGF0ZS5nZXRUaW1lKCk7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihtaWxsaXMpOwogICAgICAgIH0gY2F0Y2ggKFBhcnNlRXhjZXB0aW9uIHBlKSB7CiAgICAgICAgICAgIHBlLnByaW50U3RhY2tUcmFjZSgpOwogICAgICAgIH0KICAgIH0KfQ==