Add better check for input type date support.