Gossamer Forum
Home : Products : DBMan SQL : Discussion :

displaying current date on the page

Quote Reply
displaying current date on the page
Hello,

anyone has a trick to display current date on the page?
What I meant is that, it is just the same with the one on this forum (page) if you can see right up there on the right corner.

thanks for the advise

__________________________
SantanaBlank
Quote Reply
Re: displaying current date on the page In reply to
I also want to display the current date on my home page.

How does one display the current date in an html page? Can't use @get_date in an html page - is there any other function which can be used?

Thanks



Quote Reply
Re: displaying current date on the page In reply to
You would need to define a variable like $today....

In Reply To:

my $today = &get_date;


Then you would print the variable:

In Reply To:

print qq|Today is: $today|;


So, the complete codes would look like the following:

In Reply To:

my $today = &get_date;
print qq|Today is: $today|;


You would put these codes in the sub html_home routine.

Regards,

Eliot Lee