×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Formato campos de tipo fecha en Español: DD/MM/AAAA
Santiago Crespo Calvo - NIF 29159210V
New Member
Posts: 5
2 năm 5 tháng trước #9968
bởi Santiago Crespo Calvo - NIF 29159210V
Formato campos de tipo fecha en Español: DD/MM/AAAA was created by Santiago Crespo Calvo - NIF 29159210V
Hola
Vuestro componente funciona muy bien, pero tenemos el problema de las fechas que se presentan en los formularios y listados en formato YYYY-MM-DD y los usuarios no lo entienden ya que en España el formato es DD/MM/AAAA
¿Hay alguna forma de configurar los campos de tipo fecha para que se guarden correctamente y se presenten en el formato Español?
Muchas gracias
Vuestro componente funciona muy bien, pero tenemos el problema de las fechas que se presentan en los formularios y listados en formato YYYY-MM-DD y los usuarios no lo entienden ya que en España el formato es DD/MM/AAAA
¿Hay alguna forma de configurar los campos de tipo fecha para que se guarden correctamente y se presenten en el formato Español?
Muchas gracias
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Søren Beck Jensen
Administrator
Posts: 81
2 năm 5 tháng trước #9969
bởi Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Replied by Søren Beck Jensen on topic Formato campos de tipo fecha en Español: DD/MM/AAAA
We do not offer support in Spanish or on the forum. If you are a premium member, please use the contact form to submit a ticket.
However, as I do understand your question I will try to answer.
If you mean to display the data in the front end, then you simply need to format the date in php as you like. There are various ways to do this but I recommend the new DateTime() constructor or the date() function.
It is not recommended to change the way dates are stored and handled by the forms as YYYY-MM-DD is the standard format for storing dates in databases.
Having said that, then we should be supporting all the features of the Joomla Calendar field, so you should be able to change the format. docs.joomla.org/Calendar_form_field_type
However, as I do understand your question I will try to answer.
If you mean to display the data in the front end, then you simply need to format the date in php as you like. There are various ways to do this but I recommend the new DateTime() constructor or the date() function.
It is not recommended to change the way dates are stored and handled by the forms as YYYY-MM-DD is the standard format for storing dates in databases.
Having said that, then we should be supporting all the features of the Joomla Calendar field, so you should be able to change the format. docs.joomla.org/Calendar_form_field_type
Søren Beck Jensen
Founder, Component-Creator.com
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
Thời gian tải trang: 0.049 giây