Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Extract date from String

$
0
0

I have data like this .

I want to convert this into dates in this manner -

cycle1 indicates date on the 15<sup>th</sup> of month and cycle2 indicates date on the last day of the month.  For Dec 2013, all dates should be 12/31/2013.

For example - If String is like this - ClaimExtract_CookCHIP_201401_cycle1.txt

then date should be extracted - 01/15/2014

Pls Help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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