on 03-14-2012 5:42 AM
Hi Guys,
I need to convert the date from 01-Jan-2011 to 20110101, which is YYYYMMDD conversion.
is it possible to do it using standard node functions or do I have write user defined java code to do this. if its the case.. Could you please provide me some sample code snippet.
Thanks
Sam
hi sam vel,
that is very simple by using standard function "DateTrans" of DATe function group
source field -> dateTrans -> target field
click on Date trans:
input date format : 01-Jan-2011 u have to select date like ddMMyyyy and separator '-'
output date format : 20110101 u have to select only yyyyMMdd and separator blank.(based on ur requirement)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HEY SORRY ...THAT IS POSSIABLE WITH STANDARD FUNCTION DATE TRANS BUT NEED TO WITE LOGIC BEFOR USING DATE TRANS.
SOURCE FIELD -> SUBSTRING(O,3)-> CONCAT ->
SOURCE FIELD -> SUBSTRING(3,6)->FIXVALUES-> CONCAT ->
SOURCE FIELD -> SUBSTRING(6,11)-> DATETRANS -> TARGET FIELD
FIXVALUES:
JAN -O1
FEB-02
MAR-03
|
|
|
DEC - 12
NOTE: DOUBLE CLICK ON PIC DATE.JPG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
You can use simple date transformation. First you need to be sure what is the format that you'll be getting from source side and and target side transformation that needs to be done.
Hope this helps : http://www.saptechnical.com/Tips/XI/Date/Conversion.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.