Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Suomi] Last Modified filed?

Quote Reply
Re: [Suomi] Last Modified filed? In reply to
Hi,

Quote:
How do I add hidden date field, which would get last modified date? Without using <%Dbsql::HTML::generate_add_form%>
I think just add a date field into your table which is formated HIDDEN on Form Type.

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.
Subject Author Views Date
Thread Last Modified filed? Suomi 2792 Dec 2, 2001, 11:14 AM
Thread Re: [Suomi] Last Modified filed?
Suomi 2666 Dec 3, 2001, 9:39 AM
Thread Re: [Suomi] Last Modified filed?
604 2645 Dec 3, 2001, 10:31 AM
Thread Re: [TheStone] Last Modified filed?
Suomi 2630 Dec 3, 2001, 12:28 PM
Post Re: [Suomi] Last Modified filed?
604 2626 Dec 3, 2001, 1:35 PM
Post Post deleted by TheStone
604 2637 Dec 3, 2001, 10:29 AM