storing date in datetime format