如何将给定日期仅转换为其他格式 [英] How do I convert a given Date only to other format
本文介绍了如何将给定日期仅转换为其他格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的朋友
我想将这样的日期转换为:MM / DD / YYYY或其他日期格式
到这种格式:DDD / YYYY this格式是意义或例子:星期六/ 1995年。
有没有提到它呢?或者是其他东西 ?
提前致谢。
解决方案
strptime [ ^ ]解析它
strftime [ ^ ]重建它
Hi my friends
I want to convert a given Date only like this: MM/DD/YYYY or other date format
to this format :DDD/YYYY this format is meaning or example: Sat/1995.
There is any reference to do it ? or something else ?
Thanks in advance.
解决方案
strptime[^] to parse it
strftime[^] to rebuild it
这篇关于如何将给定日期仅转换为其他格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文