<?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>42 &#187; dhtmlcalendar</title>
	<atom:link href="http://www.42.mach7x.com/tag/dhtmlcalendar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Fri, 06 Aug 2010 11:57:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>dhtmlcalendar in ActiveScaffold</title>
		<link>http://www.42.mach7x.com/2007/11/02/dhtmlcalendar-in-activescaffold/</link>
		<comments>http://www.42.mach7x.com/2007/11/02/dhtmlcalendar-in-activescaffold/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 12:36:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ActiveScaffold]]></category>
		<category><![CDATA[dhtmlcalendar]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=5</guid>
		<description><![CDATA[To control the date format in dhtmlcalendar within ActiveScaffold in Ruby on Rails, to make the date of 2 November 2007 appear like 02-11-2007, use: i) if you want to affect the settings in all the application add the following to the top of your controllers/application.rb ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMAT[:default] = &#8216;%d-%m-%Y&#8217; ii) If you only want to [...]]]></description>
			<content:encoded><![CDATA[<p>To control the date format in dhtmlcalendar within ActiveScaffold in Ruby on Rails, to make the date of 2 November 2007 appear like  02-11-2007, use:</p>
<p>i) if you want to affect the settings in all the application add the following to the top of your controllers/application.rb<br />
<span class="code"><br />
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMAT[:default] = &#8216;%d-%m-%Y&#8217;</span><br />
ii) If you only want to affect the settings of the calendar in one specific controller, then add the same line only to the controller that you want:</p>
<pre class="code">ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMAT[:default] = '%d-%m-%Y'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2007/11/02/dhtmlcalendar-in-activescaffold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
