Javascript to grab Javascript (more) comments within <head>
<p>I originally received help in this thread: <a href="http://stackoverflow.com/questions/8305706/javascript-to-grab-javascript-comments-within-head">Javascript to grab Javascript comments within &lt;head&gt;</a>. </p>

<p>Where I wanted to use Greasemonkey/Javascript to grab a comment from within  tags. </p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
    &lt;!-- 12036,2011-11-29/11:02 --&gt;
    &lt;title&gt;Products &amp; Services&lt;/title&gt;
</code></pre>

<p>The answer I received in the thread above grabbed the number "12036" and displayed this as an overlay on my page. Now I want to grab the second part (the date) ie "2011-11-29" and also display this as an overlay. </p>

<p>What do I need to add/change from the following to grab the date? </p>

<pre><code>var commentNode = [].slice.call(document.head.childNodes).filter(function(node) {
        return node.nodeType == 8;
      })[0],
id = commentNode.data.match(/^\s*(\d+)/)[1];

var elem = document`.createElement('div');
elem.id = 'id-display';

elem.appendChild(document.createTextNode(id));

document.body.appendChild(elem);
</code></pre>
