Back to project page NotATop.
The source code is released under:
GNU General Public License
If you think the Android project NotATop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gg.util; /*from w ww . j a v a 2 s . c om*/ import java.util.Date; /** * * ?????????????????? * */ public class DateUtil { public static String getCurrentDate() { String dateStr=null; Date date=new Date(); date.getTime(); int year=date.getYear()+1900; int month=date.getMonth()+1; int dt=date.getDate(); dateStr=year+"-"+((month<10)?"0"+month:month)+"-"+((dt<10)?"0"+dt:dt); return dateStr; } }