hello, i have a date expressed as YYYMMDD 20171023 and I want it as DDMMYYYY , 23102017 , how to do this?

thanks!