标签:sim form date strong rda for nbsp ring bsp
1.String ->Date
String StrDate = "2012-12-12";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Date date = new Date();
date=sdf.parse(StrDate);
2.Date ->String
String StrDate = "";
Date date = new Date();
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
StrDate= sdf.format(date);
标签:sim form date strong rda for nbsp ring bsp
原文地址:http://www.cnblogs.com/xkl520xka/p/6639739.html