public/javascripts/yui/datasource/datasource-debug.js
function(oData) {
    var date = null;
    
    //Convert to date
    if(!(oData instanceof Date)) {
        date = new Date(oData);
    }
    else {
        return oData;
    }
    
    // Validate
    if(date instanceof Date) {
        return date;
    }
    else {
        YAHOO.log("Could not convert data " + lang.dump(oData) + " to type Date", "warn", this.toString());
        return null;
    }
}
function(oData) {
    var date = null;
    
    //Convert to date
    if(!(oData instanceof Date)) {
        date = new Date(oData);
    }
    else {
        return oData;
    }
    
    // Validate
    if(date instanceof Date) {
        return date;
    }
    else {
        YAHOO.log("Could not convert data " + lang.dump(oData) + " to type Date", "warn", this.toString());
        return null;
    }
}
function ( oData ) { var date = null ; //Convert to date if ( ! ( oData instanceof Date ) ) { date = new Date ( oData ) ; } else { return oData ; } // Validate if ( date instanceof Date ) { return date ; } else { YAHOO . log ( "Could not convert data " + lang . dump ( oData ) + " to type Date" , "warn" , this . toString ( ) ) ; return null ; } }
Converts data to type Date.

@method DataSourceBase.parseDate
@param oData {Date | String | Number} Data to convert.
@return {Date} A Date instance.
@static
Converts data to type Date .