on ‎2008 Apr 28 5:20 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.