Here’s how I’ve got my dates set up:
date:
formats:
Use the strftime parameters for formats.
When no format has been given, it uses default.
You can provide other formats here if you like!
default: “%d-%m-%Y”
short: “%b %d”
long: “%B %d, %Y”
day_names: [Domingo, Lunes, Martes, Miércoles, Jueves, Viernes, Sábado]
abbr_day_names: [Dom, Lun, Mar, Mie, Jue, Vie, Sab]
Don’t forget the nil at the beginning; there’s no such thing as a 0th
month
month_names: [~, Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio,
Agosto, Septiembre, Octubre, Noviembre, Diciembre]
abbr_month_names: [~, Ene, Feb, Mar, Abr, May, Jun, Jul, Ago, Sep, Oct,
Nov, Dic]
Used in date_select and datime_select.
order: [ :dÃa, :mes, :dÃa]
If I enter any September date, such as Septiembre 10, 1991, then I get a
validation error like this: Se produjeron problemas con los campos
siguientes:
• Fecha de nacimiento is not a valid date
I know, I’ve got some work to do on the validation message. But the
bigger question is… why is the validation failing? Is anyone else
seeing this?
Thanks!
Dave C.
Senior Developer
Collaborative Software Initiative
317-966-6154
[email protected]