Quantcast
Viewing all articles
Browse latest Browse all 24688

Last day of previous month (SSIS expression)

Hi All,

I get the last day of previous month in below format.

(DT_WSTR,200)(DT_DBDATE)DATEADD("d", -DAY(GETDATE()), DATEADD("m", 0, GETDATE()))

But I want to get last day of previous month in the below format.

2014_04_30


-kccrga http://dbatrend.blogspot.com.au/


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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