function parseDate(myDate, myTimezone) {
        var res = null;
        if(myDate !== undefined && myDate !== null) {
            if(myDate instanceof Date) {
                res = myDate;
            } else {
                if(typeof myDate == 'number' || typeof myDate == 'string') {
                    // Parse date.
                    res = new Date(isNaN(myDate)? myDate : parseInt(myDate, 10));
                    
                    // Adjust timezone.
                    res = adjustTimezone(res, myTimezone);
                }
            }
        }
        return res;
    }
// Define function for parse dates.
Define function for parse dates.
Define function for parse dates .
function parseDate(myDate, myTimezone) {
        var res = null;
        if(myDate !== undefined && myDate !== null) {
            if(myDate instanceof Date) {
                res = myDate;
            } else {
                if(typeof myDate == 'number' || typeof myDate == 'string') {
                    res = new Date(isNaN(myDate)? myDate : parseInt(myDate, 10));
                    res = adjustTimezone(res, myTimezone);
                }
            }
        }
        return res;
    }
function parseDate ( myDate , myTimezone ) { var res = null ; if ( myDate !== undefined && myDate !== null ) { if ( myDate instanceof Date ) { res = myDate ; } else { if ( typeof myDate == 'number' || typeof myDate == 'string' ) { res = new Date ( isNaN ( myDate ) ? myDate : parseInt ( myDate , 10 ) ) ; res = adjustTimezone ( res , myTimezone ) ; } } } return res ; }
Define function for parse dates.
Define function for parse dates .
// Parse date. // Adjust timezone.