# \[ANN\] DateBocks v2.0.0 Released

**URL:** <https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453>\
**Category:** Rails\
**Created:** [August 18, 2006, 11:01am UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453 "2006-08-18T11:01:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [August 18, 2006, 11:01am UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453/1 "2006-08-18T11:01:57Z")

</div>

Excert from [http://www.nshb.net/datebocks-2-0-0-released](http://www.nshb.net/datebocks-2-0-0-released)

Woohoo!! Finally released the next generation of DateBocks (aka  
DateBox) v2.0.0.

This was a long time coming, after its initial version release allll  
the way back in January, this is a nice edition to the popular tool I  
released before.

This version is chalked full of features. Here is the cut out from the  
CHANGELOG

== 2.0.0 - AUGUST 16, 2006

- Changed name from DateBox to DateBocks
- Added dependency for Prototype
- First major release after much feedback
- Renamed main method to datebocks\_field
- Removed datebocks\_flat
- Added new features
  - Close help popup window clicking on any part of the popup
  - German format dd.mm.yyyy
  - Be able to have more than one DateBocks on a page
  - Added Next or Last Week, Month, and Year (ex. Next Month or Last  
Year)
  - (monday|tuesday|wednesday|thursday|friday|saturday|sunday) -  
Defaults to next defined week day
  - Added support for mm-dd-yyyy
  - Added now for date
  - Now able to use model, method to instantiate a datebox\_field  
[Michael M.]
  - Always display with 2 characters in length for month and day

- Bug fixes
  - 1st of Jan[uary]
  - Errors now highlight elements properly
  - Major bug with the enter key to update the date and not post the  
entire form
  - Fixed bug for special days where it
  - Fixed bug for using datebox\_field in a partial [Reginald Braithwaite  
]

So with that said, do please check it out.

Oh, and I decided to spiff up the site a bit, and design my a fancy  
new layout. It is inspired from a newsletter I got. Brownie points to  
whoever guesses it 🙂

Demo away…

[http://datebocks.inimit.com](http://datebocks.inimit.com)

–  
Kind regards,

Nathaniel B.

Inimit Innovations Inc.  
[http://inimit.com](http://inimit.com)

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [August 18, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453/2 "2006-08-18T16:35:38Z")

</div>

Hi,

2006/8/18, Nathaniel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Woohoo!! Finally released the next generation of DateBocks (aka  
> DateBox) v2.0.0.

Just have seen the demo - nice 🙂  
Do you think it would be easy to adapt this for other languages, like  
german? Would be cool!

Beate

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [August 18, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453/3 "2006-08-18T17:20:47Z")

</div>

Great work Nathaniel.

I suggest a small enhancement.  
I’m working on a financial application where people usually calculate  
something from the current date.  
For example payment date is 15 days from now, I’m looking for all orders  
in  
last 30 days and so on.

How about to add extension to the entering process for example +15 will  
be  
15 day from now, -30 will be date 30 days before today.

Igor.

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [August 18, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453/4 "2006-08-18T17:54:32Z")

</div>

great job!!

I agree with the above suggestion (+15, -1, etc) This was used in an  
old payroll system we worked on and I’ve never seen it used  
elsewhere…

Jeff

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [August 18, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/ann-datebocks-v2-0-0-released/65453/5 "2006-08-18T18:02:54Z")

</div>

That is a great idea. I will definately see what I can do to get that  
in the next version!

-NSHB

On 8/18/06, J Amiel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Kind regards,

Nathaniel B.

Inimit Innovations Inc.  
[http://inimit.com](http://inimit.com)
