# Date\_tag?

**URL:** <https://www.ruby-forum.com/t/date-tag/126001>\
**Category:** Rails\
**Created:** [January 14, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/date-tag/126001 "2008-01-14T16:21:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [January 14, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/date-tag/126001/1 "2008-01-14T16:21:37Z")

</div>

Hi-

I have used helpers like text\_field\_tag when creating non-model forms  
and I would like to build a form that searches by date, also non-  
model.

Is there such thing as datetime\_tag, or something similiar?

Thanks for you suggestions!

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [January 14, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/date-tag/126001/2 "2008-01-14T16:24:33Z")

</div>

On 14 Jan 2008, at 15:20, pete wrote:

> Hi-
> 
> I have used helpers like text\_field\_tag when creating non-model forms  
> and I would like to build a form that searches by date, also non-  
> model.
> 
> Is there such thing as datetime\_tag, or something similiar?

select\_date etc… ?

Fred

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [January 14, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/date-tag/126001/3 "2008-01-14T16:29:20Z")

</div>

And you can use this in ad-hoc type forms that are not related to any  
particular model?

Thanks.

On Jan 14, 8:23 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pete](https://www.ruby-forum.com/u/pete)\
**Post date:** [January 14, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/date-tag/126001/4 "2008-01-14T17:34:38Z")

</div>

On 14 Jan 2008, at 15:28, pete wrote:

> And you can use this in ad-hoc type forms that are not related to any  
> particular model?

Yes. date\_select & friends are the ones that assume the instance  
variable convention

Fred
