Commit 136e68f9 by muzaffaryousaf

Using ISO_8601 for date formatting instead of string.

TNL-58
parent de130839
......@@ -235,10 +235,8 @@ OpenAssessment.DatetimeControl.prototype = {
//try: to catch the error thrown by parseDate if date is not in expected format.
try {
var parsedDate = $.datepicker.parseDate("yy-mm-dd", dateString);
if (parsedDate instanceof Date) {
isDateValid = true;
}
var parsedDate = $.datepicker.parseDate($.datepicker.ISO_8601, dateString);
isDateValid = parsedDate instanceof Date;
}
catch (err) {
// do nothing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment