What does CCYYMMDD date format mean?

 ̄綄美尐妖づ 提交于 2019-11-27 23:00:06

问题


I want to speak to a soap service that has a date parameter which is required to be the CCYYMMDD format.

What is its definition?


回答1:


It's just another way of writing yyyyMMdd.

The CC part represents the century, while YY is the two-digit year.

So instead of having year 2014, you can use century 21, year 14

yyyy      CC YY
2014  ->  21 14

Update:

My initial take on this was that yyyy:2014 would translate to ccyy:2014. Due to lack of documentation, that stuck for a while.

Doing further research, I arrived at the conclusion that

yyyy:2014 is actually ccyy:2114




回答2:


It means yyyyMMdd, as in year (4 digits), month (2 digits, leading zero) and day (2 digits, leading zero).

So the ISO 8601 date 2014-01-05 is represented as CCYYMMDD as 20140105.




回答3:


CC means Century (but not as in 20th century)
YY means Year
MM means Month
DD means Day

So for current date: 29/10/2015

  • CC : 20

  • YY : 15

  • MM : 10

  • DD : 29




回答4:


We are in century 21; not century 20. But they mean to write the year in a 4 digit format, so technically is yyyy. So technically ccyy is wrong. So if you are born in 1990, using the ccyy format is 2090, since 1990 is in the 20th century. But if you have to write a year, you have to assume that they are asking for yyyy, not ccyy. So for example, if you are born in 1990, and they ask you in ccyy, do not write 2090 (although technically is correct) instead write 1990. Assume they want the year in 4 digit format, not the century and 2 digit format year.




回答5:


CC in CCYYMMDD date format indicates how many centuries are finished for particular year

ex.

  • year 90 has 0 centuries finished but it's placed in 1st century,
  • year 1980 has 19 centuries finished but it's placed in 20th century,
  • year 2018 has 20 centuries finished but it's placed in 21th century,

So CCYY is equal to YYYY but in another way of writing



来源:https://stackoverflow.com/questions/33420395/what-does-ccyymmdd-date-format-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!