PDA

Click to See Complete Forum and Search --> : ok i am new to this but.........


zmerlinz
Jan 9th, 2001, 01:51 PM
i was wondering weather someone could show me how to have two labels one that displays the time and another the current date, i can do this in vb but i don't know how to do this in vb script and then implement this in dreamweaver,

all help would be great

cheers

Clunietp
Jan 9th, 2001, 11:50 PM
you mean like this?


<%@Language=VBScript EnableSessionState=False%>
<% option explicit %>
<html>
<body>

<input value="<%= formatdatetime(now, vbLongTime) %>">
<input value="<%= formatdatetime(now, vbShortDate) %>">

</body>
</html>


I have no idea how dreamweaver works, but this is the asp....


Tom

Ianpbaker
Jan 10th, 2001, 02:50 AM
Hi zmerlinz

What Clunietp wrote is correct if you just want to display the date and time at that point, but if you want a real time clock on a web page, you will need a java applet to run on the page. There are loads freely available

Ian

G.Kumaraguru
Jan 10th, 2001, 10:44 PM
You can Also do it With Client Side Scripts..(JavaScript...)
With a Textbox to Display them....