on 07-11-2008 4:26 PM
Hi all,
My date tranfer funcion source as yyyy-MM-dd and target as MMddyyyy.
when i tranfer date format using date trans funtinon, its working fine when i give date:2008-07-11 , i am getting correct value after mapping tranformation that is : 07112008
when i give source date as 0000-00-00(getting into the XI box) i am getting out put as: 11300002.
Thanks,
Dhanush
Hi Dhanush
I think i have told how to validate your date.
if you have not understood, please reply.
Thanks
Saiyog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The situation will never arise when the date will be inputed as 0000-00-00. Ok, but just incase it does then you will have to validate it. You can use date compare function. here you provide your date(1st input) and then compare it with a hard coded constant, ie 0000-00-00(2nd input) and it will return 1 or zero. 1 meaning false and 0 meaning true, then further check if its 0 or 1 and if its 0, ie true you input your date and date transform function and map it to your target.
Hope this will help you
Thanks
Saiyog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
0000-00-00 is not the correct date format. If you get the input like this then you need to compare the input with constant 0000-00-00, if both are equals then map constant 00000000 to the output else use DateTrans and map to the output or the alternate way is to define a java udf.
thanks
amit
reward points if answer is useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
validate your mapping if date is different of 0000-00-00 do the date transformation.
Thansk
Rodrigo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.