change date format and add some helper string functions