English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to get the active date in the blank part? Is there a date function?

2006-12-21 14:35:09 · 5 answers · asked by Nathan L 2 in Computers & Internet Programming & Design

5 answers

If you are talking about getting the current date as in what it is right now, you could use javascript to do this...

Page last visited on .

2006-12-21 14:48:27 · answer #1 · answered by Matthew S 2 · 0 0

Just write the current date on the page using the JS examples above. At time of download, the current date is the latest date for that user, so you don't have to worry about storing the value anywhere.

2006-12-21 16:01:00 · answer #2 · answered by Dave 5 · 0 0

The previous answer is true enough; the last visit is the current visit, so his script is correct.

You can see a version of it in action and copy the script / body onload tag from here:

http://geocities.com/dhvrm/js_last_visit_time.html

If you mean, you want the user to see the last time a page was viewed before his current visit, that would require you to use a server-side scripting language such as PHP or ASP.NET

2006-12-21 14:50:42 · answer #3 · answered by Anonymous · 0 0

JavaScript and cookies should do the trick.

2006-12-21 15:06:15 · answer #4 · answered by Anonymous · 0 0

Copy and PASte lol

2006-12-21 14:37:31 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers