开发者

Convert a java.text.DateFormat instance to a strftime string?

I've got a DateFormat object that I would like to turn into a strftime s开发者_JAVA技巧tring so I can get consistent date formatting across multiple languages. Is there something in the SDK that I'm missing? If not, is this a feature of some 3rd-party lib that I can grab? Thanks.


There is a strftime translator class in the Apache Tomcat project:

org.apache.catalina.util.Strftime

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜