Skip to content
Advertisement

How to format date that looks like this (20200326) MYSQL

I have two fields with dates in them. I am trying to format them to look like 03/26/2020 instead of 20200326. So far my code looks like this changed most of it due to my job guidelines so I can’t show you the exact code.

Advertisement

Answer

Use date_format():

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement