function NewDate(str) { str = ('-'); var date = new Date(); (str[0], str[1] - 1, str[2]); (0, 0, 0, 0); return date; }