oracletimestamp转成string
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracletimestamp转成string相关的知识,希望对你有一定的参考价值。
参考技术A oracletimestamp转成string方式如下:SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒 Timestamp now = new Timestamp(System.currentTimeMillis());//获取系统当前时间 String str = df.format(now); String转化为Timestamp: SimpleDateFormat df
以上是关于oracletimestamp转成string的主要内容,如果未能解决你的问题,请参考以下文章