简体   繁体   中英

Converting time stamp in informatica to date

I want to display the time stamp in following format '2011-04-22 10:41:57.000' to date as '04/22/2011' but when it convert it to following form TO_DATE(TO_CHAR(Date), 'MM/DD/YYYY HH24:MI:SS') it is displaying as null.

I am planning to use substring after the conversion

Can someone please tell me where i am going wrong?

你可以简单地做TO_CHAR(Date, 'MM/DD/YYYY')

我使用了 'TO_DATE(TO_CHAR(Date), 'MM/DD/YYYY HH24:MI:SS')' 和后来的 'SUBSTR(Date_V,1,11)' 我得到了所需的输出

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM