Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Validate data using ISDATE and STUFF

$
0
0

Hi All.

Using ISDATE and STUFF how can i validate dates like

11201958

Currently I can validate dates like 061408

SELECTcast(stuff(stuff(RIGHT('0'+'061408', 6), 3, 0,'-'), 6, 0,'-') ASDATE)

I am looking for similar one but missing something.

Please help

Thanks


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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