Timestamp转String 其他 2021-03-03 21:04 0 阅读 数据库导出Birthday是Timestamp类型,需要转成字符串 if(object instanceof Timestamp ){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); String creaT=sdf.format(object); object = creaT; } 猜你喜欢