Write a conversion function to convert to new day format