display the right date in popovers