cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hi all,

I have to insert date and time to oracle db from pi and it has a format

mm/dd/yyyy hh:mm:ss am

or

mm/dd/yyyy hh:mm:ss pm

how can i achieve this in PI .how can i get time in 12 hr format...

thanks,

sahana

0 Likes
View Entire Topic
sahana_ps
Participant
0 Likes

thanks all,i solved the issue...

no need of udf or complex mapping

it can be achieved in TO_DATE() function  passing current date as MM/dd/yyyy HH:mm:ss a

Former Member
0 Likes

and you can also use the copyValue finction instead of useOneasMany make it less complicated .