Here's what I need to do :
I want to change the date2 into a Date but not String.
Date date = new Date();
DateFormat format = new SimpleDateFormat ("yyyy/MM/dd",Locale.ENGLISH);
String date2 = format.format(date);
It does not allow me to save date2 as a Date. Someone please help me. Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…