move formating date to handleBar helper