set initial date to midnight