网站建设资讯

NEWS

网站建设资讯

Convertoracle.jbo.domain.DatetoString

public String convertJbodateToString(oracle.jbo.domain.Date domainDate){
        
        SimpleDateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.S" ); 
        Date date = null ;
        
        try {
            date = formatter.parse(domainDate.toString().substring( 0 , 21 ));
        } catch (ParseException e) {
        }
        
                
        SimpleDateFormat FORMATTER = new SimpleDateFormat( "MM/dd/yyyy HH:mm:ss" );
        System.out.println( "NewDate-->" + FORMATTER.format(date));
        
        return FORMATTER.format(date);
    }

当前文章:Convertoracle.jbo.domain.DatetoString
文章起源:http://njwzjz.com/article/ppgsse.html