Added support for formatting the date