Returns a date object for the date represented by the given DOM element from the following sources (in order): 1) element.data("easydate.date") (in case we previously cached it) 2) DOM element's title (if it is a valid RFC 1123 timestamp) 3) DOM element's innerHTML (if it is a valid RFC 1123 timestamp)
function get_date(element, settings)
    {
        var date = element.data("easydate.date");
        
        if(isNaN(date))
        {
            var timestamp;
            var time = Date.parse(timestamp = element.attr("title")) ||
                       Date.parse(timestamp = element.html());
            if(!isNaN(time))
            {
                date = new Date();
                date.setTime(time);
                element.data("easydate.date", date);
                if(settings.set_title && !element.attr("title"))
                    element.attr("title", timestamp);
            }
        }
        
        return date;
    }