Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

System date in a Hyperlink

Posted on 1998-11-19
4
Medium Priority
?
159 Views
Last Modified: 2010-04-09
How can I include the system date in a hyperlink? When the link is pressed each day, the data in it, is the same as the system date. The system date info, is processed when the link is pressed, in order to pointed to the page I want.
0
Comment
Question by:flmartins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 300 total points
ID: 1839915
ASP:

<a href="<%=Date()%>.htm">

SSI

<a href="<!--#echo var="DATE_GMT" -->.htm">


Javascript:

<script>
now = new Date();
strDate = getYear(Now) + "-" + getMonth(Now) + "-" + getDate(Now);
document.write('<a href="' + strDate + '.htm">linktext</a>'>
</script>

0
 

Author Comment

by:flmartins
ID: 1839916
For example:
http://www.internet.net/(syatem date).htm

How would I write the hyperlink?
0
 
LVL 28

Expert Comment

by:sybe
ID: 1839917
I gave you 3 possible ways to do it. It depends on you which one you prefer/are able to use.

SSI and ASP are serverside solutions, and will display the date of the server. The javascript solution will display the date of the client machine.

If you are able to use SSI, I would recommend that, it's the easiest.

<a href="http://www.internet.net/<!--#echo var="DATE_GMT" -->.htm">


0
 

Author Comment

by:flmartins
ID: 1839918
My problem remains: The link is this one:
http://homesite/OB2-cgi/omninotify.pl?submit=session&session
=1998/11/19-29&server=lxhp08

And I wanna include the variable in this date 1998/11/19
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question