Get Input Type Date Value Javascript Substring Syntax In Js