Guest User

Untitled

a guest
Oct 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. convert (datetime, substring(MD_SIGNATURE, charindex('/', MD_SIGNATURE,0)-2, 10),105) as MD_SIGN_DATE
  2.  
  3. convert (datetime, substring(MD_SIGNATURE, charindex('/', MD_SIGNATURE,0)-2, LEN(MD_SIGNATURE)),105) as MD_SIGN_DATE
  4.  
  5. DECLARE @s varchar(100) = 'Application approved by John Doe - MDat30/01/2018 10:54:31'
  6.  
  7. SELECT CONVERT(datetime2(0),RIGHT(@s,19),103)
Add Comment
Please, Sign In to add comment