extract datetime pattern to constant variable

Change-Id: I477a4860659ab5ff18ff03649cd6fb5ab68dc057