java 獲取當(dāng)前年月日 java如何得到年月日?
java如何得到年月日?//獲取long type long L的當(dāng)前時(shí)間=System.currentTimeMillis公司()//new date pair date date=new date
java如何得到年月日?
//獲取long type long L的當(dāng)前時(shí)間=System.currentTimeMillis公司()//new date pair date date=new date(L)//轉(zhuǎn)換日期輸出格式simpledateformat dateformat=new simpledateformat(“yyyy-MM-DD HH:MM:SS”)系統(tǒng)輸出打印( 日期格式.format(日期)