db changes datetime-> date