on 04-05-2009 7:28 AM
Hi,
1) Convert from YYYY-MM-DDTHH:MM:SS+HH:MM to DDMMYY
2) Convert from YYYY-MM-DDTHH:MM:SS+HH:MM to YYYYMMDDHHMMSS
V can use standard date function or else V Need to write any UDF .
Thanks in Advance.
Hi,
there is a standard Date-Transform function available in the message mapping which you can use...no need of an UDF for this:)
Use the below logic in your mapping:
1) Convert from YYYY-MM-DDTHH:MM:SS+HH:MM to DDMMYY
SourceField --> Substring(0..10) --> DateTransform --> TargetField
Datetransform properties:
Format of SourceDate: yyyy-MM-dd
Format of target date: ddMMyy
2) Convert from YYYY-MM-DDTHH:MM:SS+HH:MM to YYYYMMDDHHMMSS
SourceField --> Substring(0..10)-->
Concat --> DateTransform --> TargetField
SourceField --> Substring(11..19)-->
Datetransform properties:
Format of SourceDate: yyyy-MM-ddHH:mm:ss
Format of target date: yyyyMMddHHmmss
The substring function is used to remove "T" between date&time...as it will give an error
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use DateTransform function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.