# Language parameters gem calendar\_date\_select

**URL:** <https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926>\
**Category:** Rails\
**Created:** [March 15, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926 "2009-03-15T21:18:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pink-ink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9dc877/32.png) [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Post date:** [March 15, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926/1 "2009-03-15T21:18:44Z")

</div>

Hi Ruby Community!

I use the gem CalendarDateSelect with RoR 2.2.2.

Everything works fine when I use the default date-format.

In environment.rb I made the gem-dependency-entry:

```
  config.gem "calendar_date_select"

```

But do somebody knows where I have to set the entry for the other date  
formats like :finnish, :iso\_date etc.?

I searched inside the internet and tried a lot of possibilities (like  
config.gem “calendar\_date\_select”, :finnish), but nothing works:-(

Thanks ahead for every possible solution!

Regs

Hermann

---

<div class="post-metadata">

**Author:** ![pink-ink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9dc877/32.png) [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Post date:** [March 16, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926/2 "2009-03-16T22:01:52Z")

</div>

Chris wrote:

> Put this at the very end of environment.rb (_after_ the ‘end’ of the  
> Rails::Initializer.run method):
> 
> CalendarDateSelect.format = :finnish
> 
> On Mar 16, 9:18ï¿½am, Herman Mï¿½ller [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thank you very much Chris,

it works fine.

But my next Problem ist, how to save the date format.

For example: 03.12.2012 will be saved as 2012-03-12, 31.3.2009 will not  
saved because there is no month with numer 31 → the problem is by that  
rails mistakes betwenn month and day.

Do you know a solution?

Thanks ahead!

Regs Herman

---

<div class="post-metadata">

**Author:** ![pink-ink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9dc877/32.png) [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Post date:** [March 16, 2009, 9:59am UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926/3 "2009-03-16T09:59:40Z")

</div>

Put this at the very end of environment.rb (_after_ the ‘end’ of the  
Rails::Initializer.run method):

CalendarDateSelect.format = :finnish

On Mar 16, 9:18 am, Herman Müller [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pink-ink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9dc877/32.png) [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Post date:** [March 18, 2009, 12:38am UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926/4 "2009-03-18T00:38:54Z")

</div>

Now I remember I had the same problem when trying to use British-  
format dates (dd/mm/yyyy). Try this as a starting point:  
[http://groups.google.com/group/calendar\_date\_select/browse\_thread/thread/86d0451c515c2074/9f93a4a5976119fa](http://groups.google.com/group/calendar_date_select/browse_thread/thread/86d0451c515c2074/9f93a4a5976119fa)  
That discussion is getting old now, so it might be worth looking  
through the calendar\_date\_select group to see if there have been  
changes to Rails and/or the plugin that you need to know about. It’s  
still working for me with Rails 2.2, though.

On Mar 17, 10:01 am, Herman Müller [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pink-ink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9dc877/32.png) [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Post date:** [March 18, 2009, 1:35am UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926/5 "2009-03-18T01:35:59Z")

</div>

And more info here:

> **[Nominet - The Official Registry for UK Domain Names](https://www.nominet.uk)**
>
> Welcome to Nominet - Official registry for .UK domain names. Discover our domain name registration services, Cyber solutions and WHOIS lookup tool

On Mar 17, 10:01 am, Herman Müller [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
