What does CCYYMMDD date format mean?

前端 未结 5 951
小鲜肉
小鲜肉 2020-12-09 08:25

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?

相关标签:
5条回答
  • 2020-12-09 08:36

    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
    

    0 讨论(0)
  • 2020-12-09 08:39

    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.

    0 讨论(0)
  • 2020-12-09 08:47

    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.

    0 讨论(0)
  • 2020-12-09 08:47
    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

    0 讨论(0)
  • 2020-12-09 08:55

    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

    0 讨论(0)
提交回复
热议问题