changed input type to datetime