datatype-date-parse.js revision 761e9178cfaf5a97357730120fe13b8171aeb2eb
/**
* Parse number submodule.
*
* @module datatype
* @submodule datatype-date-parse
* @for DataType.Date
*/
/**
* Converts data to type Date.
*
* @method parse
* @param data {String | Number} Data to convert. Values supported by the Date constructor are supported.
* @return {Date} A Date, or null.
*/
var date = null;
//Convert to date
}
else {
return date;
}
// Validate
return date;
}
else {
return null;
}
}
});
// Add Parsers shortcut