格式化時間: SimpleDateFormat formatter = new SimpleDateFormat("MMddhhmmss"); String endno = formatter.format(new Date());