Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [timbo] storing date added / date modified

Quote Reply
Re: [timbo] storing date added / date modified In reply to
In this case, you can create global template to accomplish this matter:

sub {
require GT::Date;
return GT::Date::date_get(time, "%mm%-%dd%-%yyyy% %hh%:%MM%:%ss%");
}

Now, you need to add those hidden objects below into:

- add_form:

<input type="hidden" name="added_date" value="<%global_name%">
<input type="hidden" name="updated_date" value="<%global_name%">

- modify_form:
<input type="hidden" name="updated_date" value="<%global_name%">

Hope that helps,

TheStone.

B.
Subject Author Views Date
Thread storing date added / date modified timbo 2838 Nov 14, 2003, 8:23 AM
Post Re: [timbo] storing date added / date modified
604 2723 Nov 14, 2003, 10:17 AM