supports html5 to mysql date translation