on 08-17-2006 2:39 PM
Hi All,
Could any one please help me writing the user defined function.
The source(Database) date format is 31-JAN-99 and the required XI destination Format is yyyyMMdd.
Could any one please help me to sort out the issue.
Regards,
Smith.
Hi Kalyan -
As Satish states, you can achieve this by using the DateTrans date function. If your source is 31-JAN-99 then your source format would be <i>dd-MMM-yy</i> (just type this in as it is not listed among the choices). The function assumes <i>MMM</i> is an abbreviated month (e.g. JAN, FEB, DEC, etc.) and if the target format is just <i>yyyyMMdd</i>, for example, the <i>MM</i> part will get converted to the corresponding month number.
Regards,
Jin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Paul
No UDF is required. You have a node function called 'Date transformation'. Use this and link the source and target field. Double click on the date transformation and set the properties which is self explanatory. This will work.
Thkx
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I ve tried using date trans dd-MM-yyyy and the response i got is OK but the source year is 99 and the destination should be 1999 . Instead it is considerins as 0099..please help me out.
Thanks,
Smith.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Paul
You dont need to have a UDF for this. You can use <i><b>DateTrans</b></i> function in message mapping. The only thing you have to do when declaring the fields declare them as <i><b>date</b></i>. Then you give your source as dd-MM-yyyy and target as yyyymmdd.
Ex:
Source field->DateTrans>Target field
The properties of DateTrans should be like above what I have said.
Hope this helps......
---Satish
Hi Paul,
Pls do check the Date Function. In that you can configure the expected source format and also the target format. If its not there only then you need a UDF.
cheers
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.