java 转国外日期格式
一、sql中如何转固定的国外日期格式
SELECT ps.article_no, to_char(soot.gmt_finished, 'dd-Mon-yyyy') gmt_finished, soot.log_company, soot.express_way_no, soot.contract_no, soot.po_number, soot.customer_name, soot.reciver_address FROM sales_out_order_total soot

这里的Mon 对应Oct 月份的英文简写。
二、Java代码中如何转固定的国外日期格式
DateFormat format = new SimpleDateFormat("dd-MMM-yyyy", Locale.US); String s = format.format(packingListQuerySqlOutDto.getGmtFinished()); -- 输出结果: 26-Oct-2021
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/199671.html原文链接:https://javaforall.net
