Hi,
Here take field2 field3 field4 and field 5 as per your fields....
here I have taken field3 and field 4 first
1) First I am checking field4 is exists if it exists then I am sending the value of field4 else
again I am checking the field3 is existing then I am taking the value of field3. In else I am assiging the value of field 3 to else....
2) Now I am taking the field 2 and field 5 values
First I am checking field5 is exists if it exists then I am sending the value of field5 else
again I am checking the field2 is existing then I am taking the value of field2. In else I am assiging the value of field 2 to else...
Now I taken the conditions from field3, field4 and field5 and field2 again same rule I applied for these 2 things......
from this step I will get the value of one field of all the 4 fields...which one is existing.....
then that value I am doing Datetrans function from that I am doing conversion then Finally I am getting the value EX: 02/12/2014 13:00:05
Then next I am taken substring 0,10 assign that to date
and again I more substring from 11 to 8 assign that field to time...
Thanks,
Sreenivas