SimpleDateFormat simFormat = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); Date dtBeg = simFormat.parse("2008.01.23 22:45:56"); Powered by ScribeFire.