Added date input behaviour