Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What format does yyyy-mm-dd refer to in the computer?

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what yyyy-mm-dd refers to in the computer format, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

[yyyy-mm-dd] is a date format, meaning [year-month-day], sometimes written as [yyyy-MM-dd], to distinguish mm points in [HH:mm:ss] [hours: minutes: seconds].

Yyyy-mm-dd is a date format that represents year-month-day, sometimes written as yyyy-MM-dd, to distinguish mm (minutes) in HH:mm:ss (hours: minutes: seconds).

Examples of use:

Date result1 = string2Date ("2016-12-15", "yyyy-MM-dd"); System.out.println (result1); Date result2 = string2Date ("2016-12-15", "YYYY-MM-DD"); System.out.println (result2); Date date1 = new Date (); System.out.println (date2String (date1, "yyyy-MM-dd")); System.out.println (date2String (date1, "YYYY-MM-DD"))

Output result:

Thu Dec 15 00:00:00 CST 2016Sun Dec 27 00:00:00 CST 20152016-12-202016-12-355 is all the content of this article "what format does yyyy-mm-dd in the computer refer to?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 260

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report