sql - SSIS - Converting 4 digit string to time value -


i'm trying replicate following t-sql statement want expression:

timeval 4 digit int representing hh:mm

dateadd(hour,(timeval/ 100) % 100,  dateadd(minute,(timeval/1) % 100, cast('00:00' time(2)))) timeopened 

any appreciated

derived column code:

(dt_dbtime)(substring((dt_wstr,4)(time),1,2) + ":"  + substring((dt_wstr,4)(time),3,4)) 

example data 1.

enter image description here

2.derived column

enter image description here

3.view

enter image description here


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

url rewriting - How to redirect a http POST with urlrewritefilter -