I have a char field which is having Date in it as ’26-Nov-2011′
I want this date to be printed in YYYY-MM-DD format.
I used following date conversion which is not allowing me to do.
select date_format('26-Nov-2011','%d-%b-%y')
returns Null.
I know date_format function can accept date in YYYY-DD-MM format but
Please let me know how to convert a Character to Required Date Format
Try this:
Output: