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.
↧