<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Date object &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/date-object/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>javascript get locale month with full name</title>
		<link>/2009/08/10/javascript-get-locale-month-with-full-name/</link>
		<comments>/2009/08/10/javascript-get-locale-month-with-full-name/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 07:48:16 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[Date object]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[month]]></category>

		<guid isPermaLink="false">/?p=729</guid>
		<description><![CDATA[JavaScript Date object The Date object in JS helps you work with dates as it sounds logical. However there are limited number of functions attached to it which you can use. You can check for full Date specification in w3schools : here. How to get the month name? Normally when you try to use a &#8230; <a href="/2009/08/10/javascript-get-locale-month-with-full-name/" class="more-link">Continue reading <span class="screen-reader-text">javascript get locale month with full name</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
<li><a href="/2010/02/22/get-the-browser-locale-and-language-from-zend_locale/" rel="bookmark" title="Get the browser locale and language from Zend_Locale">Get the browser locale and language from Zend_Locale </a></li>
<li><a href="/2010/02/12/how-to-detect-a-variable-existence-in-javascript/" rel="bookmark" title="How to detect a variable existence in JavaScript?">How to detect a variable existence in JavaScript? </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>JavaScript Date object</h2>
<p>The Date object in JS helps you work with dates as it sounds logical. However there are limited number of functions attached to it which you can use. You can check for full Date specification in w3schools : <a title="JavaScript Date object reference" href="http://www.w3schools.com/jsref/jsref_obj_date.asp" target="_blank">here</a>.</p>
<h2>How to get the month name?</h2>
<p>Normally when you try to use a date object you can format it with the following code:</p>
<pre lang="javascript">var d = new Date();
alert(d.getFullYear());
alert(d.getMonth());
alert(d.getDate());</pre>
<p>The problem is that you cannot reference the date object and to get the full name of the month. Something like d.getFullMonth()!</p>
<p><img class="aligncenter size-full wp-image-730" title="javascript-date-object" src="/wp-content/uploads/2009/08/javascript-date-object.png" alt="" width="294" height="169" /></p>
<p>That&#8217;s why the easiest way to get the full month name is to make a custom locale array such this one:</p>
<pre lang="javascript">var monthLocale = new Array(12);
monthLocale[0] = "January";
monthLocale[1] = "February";
monthLocale[2] = "March";
monthLocale[3] = "April";
monthLocale[4] = "May";
monthLocale[5] = "June";
monthLocale[6] = "July";
monthLocale[7] = "August";
monthLocale[8] = "September";
monthLocale[9] = "October";
monthLocale[10] = "November";
monthLocale[11] = "December";</pre>
<p>And than you can simply reference the locale array!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
<li><a href="/2010/02/22/get-the-browser-locale-and-language-from-zend_locale/" rel="bookmark" title="Get the browser locale and language from Zend_Locale">Get the browser locale and language from Zend_Locale </a></li>
<li><a href="/2010/02/12/how-to-detect-a-variable-existence-in-javascript/" rel="bookmark" title="How to detect a variable existence in JavaScript?">How to detect a variable existence in JavaScript? </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/08/10/javascript-get-locale-month-with-full-name/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
