title: How To Convert A Foreign Month In A Date String Into English
body: <p>The below answer to another thread seems to make a start on what I think I need, but I am having difficulties in implementing it.</p>
  
  <blockquote>
    <p>The best library for that purpose would probably be Globalize. It
    allows you to specify the locale (it is called culture but it is
    actually the same), the format (built-in or your own) and actually
    parse string to given date:</p>
    
    <p>var dateString = "lunes, 29 de agosto de 2011"; // seems like long
    date format in Spanish var date = Globalize.parseDate( dateString,
    "D", "es" );</p>
    
    <p>You would need to attach appropriate culture file as well as reference
    to Globalize to make it work. Please mind that cultures are already
    defined in the library, so don't be afraid of the message on the web
    page, you actually don't need .Net.</p>
  </blockquote>
  
  <p>If someone could turn this into a working example I could then take this and adjust to what I need.</p>
  
  <p>However ... does anyone know of an alternative method?</p>
  
  <p>My string for example is:</p>
  
  <p>"<strong>Set</strong> 24, 2012  20:40:20" which has the month in Romanian.</p>
  
  <p>I need it to be </p>
  
  <p>"<strong>Sep</strong> 24, 2012  20:40:20" which has the month in English.</p>
  
  <p>I need a solution that can take the language code (ie en, es, pl, ru, ro etc) and convert the month in the string (needs to be able to handle all 12 months, not just the one in the above string) from the foreign language to English.</p>
  
  <p>Any speedy help would be most appreciated so that I can get my site back up and running at full speed again.</p>
  
  <p>If you require any further information from me please ask :)</p>
  
  <p>Regards
  Ross</p>
  
  <p>@Jukka K. Korpela</p>
  
  <p>I have this:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;title&gt;Testing Globalize&lt;/title&gt;
  &lt;meta name="keywords" content="Globalize, Testing"&gt;
  &lt;meta name="description" content="Trying to get globalize to work."&gt;
  &lt;script src="https://github.com/jquery/globalize/blob/master/lib/globalize.js"&gt;&lt;/script&gt;
  &lt;script src="https://github.com/jquery/globalize/blob/master/lib/cultures/globalize.cultures.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  var monthString = 'sep'; // replace by code that extracts the string
  var lang = 'ro';          // replace by code that picks up the right language
  var month = Globalize.parseDate(monthString, 'MMM', lang);
  if(month) {
    document.write(Globalize.format(month, 'MMM', 'en'));
  } else {
    alert('Unrecognized month: ' + monthString);
  }
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>But it doesnt work when I test in "http://htmledit.squarefree.com/" please help :)</p>