rt

解决方案 »

  1.   

    import java.text.DecimalFormat;     
            //Date nowTime=new Date(System.currentTimeMillis()); 取系统时间
            //SimpleDateFormat sDateFormat=new SimpleDateFormat("yyyy/MM/DD HH:mm:ss"); 
            //String todayTime=sDateFormat.format(nowTime);
            //System.out.println(nowTime);
            sDateFormat.parse(String StringDate)// 字符串转日期
      

  2.   

    建议看一下下面的帖子,关于时间方面的问题,介绍的特全
    http://community.csdn.net/Expert/topic/5421/5421828.xml?temp=.4764063