cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATE FORMAT ccyymmdd

Former Member
0 Likes
7,071

Hi all,

I am doing EDI message to IDOC mapping in which My requirement is to map

Current date -


>DATUM

in this mapping current date should be in the format ccyymmdd

If i give this format in function current date then it gives rumtime error that C is illegal character

It only accepts y, m and d characters

any body can tell me how can i give this CCYYMMDD format in current date function?

Thanks

Sandeep sharma

View Entire Topic
Former Member
0 Likes

Hi

you can treat the CCYY as YYYY as CC defins the century 19 and YY defins the year. so both are same

in XI u can use the dtae format of typr YYYYMMDD for CCYYMMDD.

Thanks

Rinku

Former Member
0 Likes

Hi Rinku

thanks for reply

you can treat the CCYY as YYYY as CC defins the century 19 and YY defins the year. so both are same 

in XI u can use the dtae format of typr YYYYMMDD for CCYYMMDD.

i know both are same just a slight diffencer in way of representation

My requirement is to give date in format CCYYMMDD format not in year format

any more help????

Regards

sandeep

Former Member
0 Likes

i know both are same just a slight diffencer in way of representation

My requirement is to give date in format CCYYMMDD format not in year format

If you give the date 20080428,it treats 20 as CC (century) and 08 as Year 04 as month 28 as date.

So you can use the same format.

Former Member
0 Likes

Dear Sandeep,

In JAVA date manipulation classes (SimpleDateFormat, DateFormat), the "CC" pattern (century) does not exist ...

As Rinky says, YYYYMMDD would be the easier way of representing such date ... Otherwise you'll have to explain us why do you need to stick to this CC thing (ie, "CCYYMMDD" today date should be "21080428" ?)

Rgds

Chris