on 10-07-2013 4:18 PM
Hi,
I'm using DateTrans function to convert the date from MDM to a format that is acceptable by our receiver system. The format in MDM is mm/dd/yyyy hh:mm:ss GMT and the expected output is mm/dd/yyyy hh:mm
So basically, the mapping just needs to remove the seconds and GMT part of the date.
However, for some reason, the mapping is failing and producing a different value than the source.
Here's the actual mapping:
Did I miss something? Appreciate your inputs regarding this. Thanks a lot!
Hi Mark,
Maybe im confused but you said that your format is mm/dd/yyyy but you have in datetrans function dd/MM/yyyy, months and days are interchanged. The system i think is adding 12 months in your result because it is expecting 16 months, 16 - 12 = a year and four months.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you try to make a substring? I dont replicate your issue rigth now, i just thinking.
i will try replicate it later. i am in a meeting now.
Best Regards
Rodrigo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
In the Date transformation, you have specified input data in format dd/mm/yyyy, whereas the first two values in the above test data are 08/16/2013 which is not possible since a month cannot be 16. Either this test is carried out with incorrect data or you might have to specify input in format of mm/dd/yyyy instead of dd/mm/yyyy.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.