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