| Index
» Projekty
» phpMyEdit
» Fórum
» strftimemask in edit mode |
 |
joe438
Založený: 23.06.2008
Príspevky: 2
Zaslal: 2008-06-26 19:37
Návrat hore
Odpovedať s citátom
|
I have 2 date fields that I have applied a strftime mask to so they display %m/%d/%Y. They display correctly in list mode and view mode.
However, edit mode defaults to displaying them in %Y-%m-%d as read from the database. How can I get the same mask to appear in edit mode?
It's very confusing to the users to see the dates in this format only when editing.
I've already written update and insert triggers to convert any valid dates entered to the proper format for mysql.
|
ajh
Založený: 17.12.2003
Príspevky: 236
Zaslal: 2008-06-27 15:24
Návrat hore
Odpovedať s citátom
|
The only way I know of doing it is to use a 'sqlw' to convert the text input into the correct format for MySQL...so you would write an expression to convert:
mm/dd/yy to yy/mm/dd
The alternative is to use an extension like mce_cal (in the CVS) to use a Javascript calendar popup for the field.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|