prettifyDate helper more generic