This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Displaying time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Displaying time
Simon

2004-04-07, 7:29 am

Hi, I am using the following code to display the time. Is there anyway to
format it so that it only displays the hours and minutes - not the seconds

thanks

<%= DoDateTime((Modevents.Fields.Item("EventTime").Value), 3, 1033) %>

Alex


Singularity.co.uk

2004-04-07, 7:33 am

Hi

Try the Hour and minute functions:

<%
Response.Write "The time is " &
Hour(Modevents.Fields.Item("EventTime").Value) & ":" &
Minute(Modevents.Fields.Item("EventTime").Value)
%>

Watch the line wrap!

Hope this helps.

Brendan

--
___________________________________
Brendan.Collins@NOSPAMSingularity.co.uk
Remove the NOSPAM
http://www.singularity.co.uk
___________________________________


"Simon" <sjk@nojunkmail.com> wrote in message
news:c50c75$rs0$1@forums.macromedia.com...
> Hi, I am using the following code to display the time. Is there anyway

to
> format it so that it only displays the hours and minutes - not the seconds
>
> thanks
>
> <%= DoDateTime((Modevents.Fields.Item("EventTime").Value), 3, 1033) %>
>
> Alex
>
>



Spud

2004-04-07, 9:29 am

Hi yea,

Some excellent free extensions here, to do what you require
http://www.kaosweaver.com/extension...php?id=24&cid=9
http://www.kaosweaver.com/extension...php?id=32&cid=9

regards

Spud



"Simon" <sjk@nojunkmail.com> wrote in message
news:c50c75$rs0$1@forums.macromedia.com...
> Hi, I am using the following code to display the time. Is there anyway

to
> format it so that it only displays the hours and minutes - not the seconds
>
> thanks
>
> <%= DoDateTime((Modevents.Fields.Item("EventTime").Value), 3, 1033) %>
>
> Alex
>
>



Simon

2004-04-07, 9:29 am

Thanks both
"Simon" <sjk@nojunkmail.com> wrote in message
news:c50c75$rs0$1@forums.macromedia.com...
> Hi, I am using the following code to display the time. Is there anyway

to
> format it so that it only displays the hours and minutes - not the seconds
>
> thanks
>
> <%= DoDateTime((Modevents.Fields.Item("EventTime").Value), 3, 1033) %>
>
> Alex
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews