java 各数据类型之间的转换

String —> Date

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date content= sdf.parse(contentStr);
posted @ 2017-09-14 15:37  panda521  阅读(142)  评论(0编辑  收藏  举报