SimpleDateFormate日期转换遇到的问题

在将文件名的时间字符串转换成时间戳的时候,出现了一些问题。我的写法如下: SimpleDateFormat sdf=new SimpleDateFormat("yyyymmdd"); try { Date date=sdf.parse(editText.getText().toString().trim()); date.getTime(); } catch (ParseExcep
相关文章
相关标签/搜索