preload date and time when click on a calendar date