Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8709

Re: Determine if valid date via SQL

$
0
0

Maybe you could try to use TO_DATE() and if it successfully converts, then you can consider it was a valid date?

 

I'm not sure how to capture the result, though.

You need to test to see what is the output of TO_DATE() in case you have an invalid date, or if it will run at all or just throw an error (in which case I suppose it's unusable?).

 

http://help.sap.com/hana/html/sql_function_to_date.html


Viewing all articles
Browse latest Browse all 8709

Trending Articles



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