The reason I did this is because I included a date picker (query calendar plugin). However, I may be able to use the built-in Date.parseString (something like that) function to get a date from the string.