I am trying to convert GETDATE() to a string in SSIS in the format of dd-MMM-yy (ex;, 03-NOV-17) as I am using Oracle as a data source.
I've developed the expression below, which will return 2017-11-03. This is close, but I need the "11" to read "NOV".
(DT_STR, 4, 1252) DATEPART("yy" , GETDATE()) + "-" +
RIGHT("0" + (DT_STR, 2, 1252) DATEPART("mm" , GETDATE()), 2) +
"-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("dd" , GETDATE()), 2)
Any suggestions here?