Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [jean] How to transform date input?

Quote Reply
Re: [jean] How to transform date input? In reply to
Hi Jean

since our database is using European date format, I've installed your TransformDateInput plugin. I've seen that it has a hook for add_records and it works perfectly for the add_record form.

I've been wondering if the plugin could be "enriched" so that it also works for the modify_record form Wink. I see the following difference to the add_record hook: in the beginning, the date format stored in the database has to be converted to the European format (the date must be displayed in the correct format on the modify_record form -> <%GT::Date::date_transform($datefieldname,'%yyyy%-%mm%-%dd%','%dd%.%mm%.%yyyy%')%>) before it will be submitted back to the database and converted again (after the record modification). This means that the plugin should be able to do a two-way operation instead of a one-way operation. It would be nice if the plugin could handle both ways for the modify_record hook (otherwise, I would have to use the code mentioned above directly in the template).

Thanks for your help,
Oliver
Subject Author Views Date
Thread How to transform date input? Armin 4075 Dec 5, 2002, 5:18 AM
Thread Re: [Armin] How to transform date input?
Inertia 4004 Dec 5, 2002, 12:18 PM
Thread Re: [Inertia] How to transform date input?
Armin 3979 Dec 5, 2002, 1:58 PM
Thread Re: [Armin] How to transform date input?
jean 3978 Dec 5, 2002, 3:28 PM
Post Re: [jean] How to transform date input?
Armin 3972 Dec 6, 2002, 12:16 AM
Thread Re: [jean] How to transform date input?
olivers 3643 Jun 1, 2004, 2:16 AM
Thread Re: [olivers] How to transform date input?
olivers 3633 Jun 1, 2004, 2:59 AM
Thread Re: [olivers] How to transform date input?
olivers 3588 Jun 20, 2004, 12:10 PM
Post Re: [olivers] How to transform date input?
olivers 3580 Jun 21, 2004, 8:39 AM