formats date and time on pages index and show