java往數據庫添加具體時間

Oracle------data類型html Date date= new  Date(); //取得當前時間 SimpleDateFormat tempDate =  new  SimpleDateFormat( "yyyy-MM-dd HH:mm:ss" ); String datetime = tempDate.format(date);  //格式化 setDate( new  java.
相關文章
相關標籤/搜索