<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Tutorial%2FDate%2FgetMonth</id>
		<title>JavaScript Tutorial/Date/getMonth - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Tutorial%2FDate%2FgetMonth"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Date/getMonth&amp;action=history"/>
		<updated>2026-04-05T12:43:56Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Tutorial/Date/getMonth&amp;diff=9399&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Date/getMonth&amp;diff=9399&amp;oldid=prev"/>
				<updated>2010-05-26T08:25:01Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 08:25, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Tutorial/Date/getMonth&amp;diff=9398&amp;oldid=prev</id>
		<title> в 18:52, 25 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Tutorial/Date/getMonth&amp;diff=9398&amp;oldid=prev"/>
				<updated>2010-05-25T18:52:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Date.getMonth==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The getMonth() method returns the month portion of the Date object expressed as an integer from 0 (January) to 11 (December).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Current Month&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
var current_date = new Date();&lt;br /&gt;
month_value = current_date.getMonth();&lt;br /&gt;
document.write(&amp;quot;Current Month is &amp;quot; + month_value);&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Date.getMonth() with switch statement==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
   &amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!--&lt;br /&gt;
    function getMonthString(num)&lt;br /&gt;
    {&lt;br /&gt;
      var month;    //Create a local variable to hold the string&lt;br /&gt;
      switch(num)&lt;br /&gt;
      {&lt;br /&gt;
        case 0:&lt;br /&gt;
          month=&amp;quot;January&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 1:&lt;br /&gt;
          month=&amp;quot;February&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 2:&lt;br /&gt;
          month=&amp;quot;March&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 3:&lt;br /&gt;
          month=&amp;quot;April&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 4:&lt;br /&gt;
          month=&amp;quot;May&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 5:&lt;br /&gt;
          month=&amp;quot;June&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 6:&lt;br /&gt;
          month=&amp;quot;July&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 7:&lt;br /&gt;
          month=&amp;quot;August&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 8:&lt;br /&gt;
          month=&amp;quot;September&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 9:&lt;br /&gt;
          month=&amp;quot;October&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 10:&lt;br /&gt;
          month=&amp;quot;November&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        case 11:&lt;br /&gt;
          month=&amp;quot;December&amp;quot;;&lt;br /&gt;
          break;&lt;br /&gt;
        default:&lt;br /&gt;
          month=&amp;quot;Invalid month&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      return month;&lt;br /&gt;
    }&lt;br /&gt;
    theDate = new Date();&lt;br /&gt;
    document.write(&amp;quot;The month is &amp;quot;,getMonthString(theDate.getMonth()));&lt;br /&gt;
    --&amp;gt;&lt;br /&gt;
    &amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Translate the Date().getMonth() to month name==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Combine Date Values&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
var months = new Array(12);&lt;br /&gt;
months[0] = &amp;quot;January&amp;quot;;&lt;br /&gt;
months[1] = &amp;quot;February&amp;quot;;&lt;br /&gt;
months[2] = &amp;quot;March&amp;quot;;&lt;br /&gt;
months[3] = &amp;quot;April&amp;quot;;&lt;br /&gt;
months[4] = &amp;quot;May&amp;quot;;&lt;br /&gt;
months[5] = &amp;quot;June&amp;quot;;&lt;br /&gt;
months[6] = &amp;quot;July&amp;quot;;&lt;br /&gt;
months[7] = &amp;quot;August&amp;quot;;&lt;br /&gt;
months[8] = &amp;quot;September&amp;quot;;&lt;br /&gt;
months[9] = &amp;quot;October&amp;quot;;&lt;br /&gt;
months[10] = &amp;quot;November&amp;quot;;&lt;br /&gt;
months[11] = &amp;quot;December&amp;quot;;&lt;br /&gt;
var current_date = new Date();&lt;br /&gt;
month_value = current_date.getMonth();&lt;br /&gt;
day_value = current_date.getDate();&lt;br /&gt;
year_value = current_date.getFullYear();&lt;br /&gt;
document.write(&amp;quot;The current date is &amp;quot; + months[month_value] + &amp;quot; &amp;quot; +&lt;br /&gt;
day_value + &amp;quot;, &amp;quot; + year_value);&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>