Quantcast
Viewing all articles
Browse latest Browse all 27759

Date Conversion - response (3) by Qaisar Aftab Kiani

Hi Mallesh, You can simple check the length of incoming date string and based on that you can concatenate 0 in the start and make the string in a standard format for your rest of the code, like SELECT CASE WHEN CHAR_LENGTH(CREATED) = 9 THEN CREATED ELSE '0'||CREATED ENDYou will always have the date in DD-MON-YY format.

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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