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]
|
|
|
| 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
>
>
| |
|
|
|
| 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
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|