我希望显示2019年3月2日就像'02 -Mar-2K19'

问题描述 投票:0回答:1

我想显示像2K19这样的日期年份

在Php或wordpress中

Example 08 OKT 2019 to 08 OKT 2K19
date date-formatting
1个回答
1
投票
strftime("%d %b 2K%y");

显然这不适用于2000年1月1日之前的日期。

© www.soinside.com 2019 - 2024. All rights reserved.