Hi,
I think just add a date field into your table which is formated HIDDEN on Form Type.
And do I need to assign hidden value of "" (Nothing) for it on my forms?
You can use date_set_format to change the format. You pass in a format string:
%yyyy%-%mm%-%dd%
%dd%-%mmm%-%yyyy%
%ddd% %mmm% %dd% %yyyy%
Eg.
require GT::Date;
date_set_format('%mm%-%dd%-%yyyy%');
my $cur_date = GT::Date::date_get();
Cheers,
TheStone
B.
Quote:
How do I add hidden date field, which would get last modified date? Without using <%Dbsql::HTML::generate_add_form%>Quote:
Well I found the timestamp thingy, but it displays time in 20011202 instead of 2001-12-02... And do I need to assign hidden value of "" (Nothing) for it on my forms?
You can use date_set_format to change the format. You pass in a format string:
%yyyy%-%mm%-%dd%
%dd%-%mmm%-%yyyy%
%ddd% %mmm% %dd% %yyyy%
Eg.
require GT::Date;
date_set_format('%mm%-%dd%-%yyyy%');
my $cur_date = GT::Date::date_get();
Cheers,
TheStone
B.