Long数据装换成String格式的时间

    xiaoxiao2021-12-04  40

    SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date dt = new Date(123456L );//123456L为long数据  String time=sdf.format(dt);
    转载请注明原文地址: https://ju.6miu.com/read-680247.html

    最新回复(0)