Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Date Conversion - response (3) by Qaisar Aftab Kiani

$
0
0
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