Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Convert a string of digit numbers to DATETIME

$
0
0

Hi All,

 

I have a column with the data like below:

"1347635686a 00n0679b1347635687c00n0679I: 32.IBJD.883305..SW 512 366-4757 01512-366-4776 015 post 4, warehouse, position 24 "

I wanna convert the sub strings "1347635686" and "1347635687" into DATETIME,  so did it like below:

 

REGEXP_REPLACE(@Details\Note Org),'[[:digit:]]{10}', to_char(

fn_adjusted_date(

converttousertz_bo(

to_number(

REGEXP_SUBSTR(Details\Note Org),'[[:digit:]]{10}',1,1)),'00n8807')),'MM/dd/yyyy HH24:mi:ss'))

 

However, the result I got is the same DATETIME for both sub strings.

09/14/2012 09:14:46a 00n0679b 09/14/2012 09:14:46c00n0679I: 32.IBJD.883305..SW 512 366-4757 01512-366-4776 015 post 4, warehouse, position 24 "


Is there any suggestion?

Help me please?


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>