Format dates with more than 4 digit years

Change-Id: I18564029636fbfe8e8dd3883c903874e701be503