# Datetime\_select 12 hour display? (Am/PM)?

**URL:** <https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/112486>\
**Category:** Rails\
**Created:** [August 20, 2007, 3:01am UTC](https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/112486 "2007-08-20T03:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [August 20, 2007, 3:01am UTC](https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/112486/1 "2007-08-20T03:01:13Z")

</div>

I have been looking all through the documentation and can’t find  
anything to display the time in 12 hours format with an AM/PM option. Is  
there an option for datetime\_select to do this? Or a plugin?

Thanks!

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [August 20, 2007, 9:13am UTC](https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/112486/2 "2007-08-20T09:13:52Z")

</div>

On Aug 20, 6:01 am, Ben J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I have been looking all through the documentation and can’t find  
> anything to display the time in 12 hours format with an AM/PM option. Is  
> there an option for datetime\_select to do this? Or a plugin?

Look up the strftime function

–  
Procrastinx
