Informatica Powercenter : Convert String to timestamp with milliseconds

When you want to convert a String to a timestamp with milliseconds and you are only getting zero’s for milliseconds in your database make sure that the following option is disabled in the session (Config Object tab) :

2015-05-21 12_35_18-Edit Tasks

If this is enabled the milliseconds will be truncated.

You can use the following formula to convert a string to a timestamp with milliseconds :

to_date(‘2013-09-01 12.14.16.627000’,‘YYYY-MM-DD HH24.MI.SS.US’ )

 

Leave a Reply

Your email address will not be published.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close