on 10-06-2008 1:54 PM
HI All,
I would like to convert the date from 2008-10-07 to 07-OCT-2008.
I have tried to use DATE transform to convert the same.
I can convert the source Date (2008-10-07) to target as 07-10-2008.
But, My requirement is to display the Month in Chars rater than in Digits .
Please suggest me any good Mapping which can display Month in Characters.
Thanka !
Hi,
you could use 3 substring functions.
In your example you will have:
07-
10
-2008
The month value goes inside a FixValue function.
Then you concat your three substrings together.
If you do it like that you should check first if the length of input string is 10 chars.
Regards
Patrick
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.
Use substring function and fixed value function
source is of YYYY-MM-DD format
target should be of DD-MON-YYYY format
so check the input is of substring length 10.
thats (0..9)
and substring (5,6) should be converted to month using Fixvalue and target will be of length 11.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.