title: Need to insert javascript into php code [Wordpress Website]
body: <p>For my wordpress website I am trying to remove the Google timestamp that is currently in my SERP (search page result description.)</p>
  
  <p>To do this I must use javascript to get the time and report it back.</p>
  
  <p>You may want to refer to this link:
  <a href="http://www.andrewkeir.com/remove-wordpress-post-datestamp-timestamp-google-serps/" rel="nofollow">http://www.andrewkeir.com/remove-wordpress-post-datestamp-timestamp-google-serps/</a></p>
  
  <pre><code>function twentyten_posted_on() {
  printf( __( '&lt;span class="%1$s"&gt;Posted on&lt;/span&gt; %2$s &lt;span class="meta-sep"&gt;by&lt;/span&gt; %3$s', 'twentyten' ),
      'meta-prep meta-prep-author',
      sprintf( '&lt;a href="%1$s" title="%2$s" rel="bookmark"&gt;&lt;span class="entry-date"&gt;%3$s&lt;/span&gt;&lt;/a&gt;',
          get_permalink(),
          esc_attr( get_the_time() ),
          get_the_date()
  
      ),
  </code></pre>
  
  <p>In the above code get_the_time() and get_the_date() are the parts are want to replace with the following javascript:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;document.write("&lt;?php the_time('F jS, Y') ?&gt;");&lt;/script&gt;
  </code></pre>
  
  <p>Whats the PHP code to do this! I have tried a million things which all result in error's so I think I may be overlooking something.</p>