SimpleDateFormat类中的日期格式是什么? [英] What are the date formats available in SimpleDateFormat class?
本文介绍了SimpleDateFormat类中的日期格式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过api,但找不到满意的答案。任何帮助都非常感谢
解决方案
日期格式在这里很好描述 http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
可能会有 n
可以制作的格式数量。 ex - dd / MM / yyyy
或 YYYY-'W'ww-u
或...
您可以混合和匹配字母来实现您所需的模式。
Can anybody let me know about the date formats available in SimpleDateFormat class.
I have gone through api but could not find a satisfactory answer.Any help is highly appreciated.
解决方案
Dateformats are well described here http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
There could be n
Number of format you can possibly make. ex - "dd/MM/yyyy
" or "YYYY-'W'ww-u
" or ...
You can mix and match the letters to achieve your required pattern.
这篇关于SimpleDateFormat类中的日期格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文