Move date formatting into commmon.utils