Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateDiff

Status
Not open for further replies.

jesse123

Technical User
Joined
Apr 3, 2007
Messages
9
Location
US
I’m trying to find the difference between two times.

This is what I have...

<%=DateDiff("n",(RS_Tickets.Fields.Item("FLD_TimeStart").Value),(RS_Tickets.Fields.Item("FLD_TimeEnd").Value))%>

Is it possible to make it so it displays the difference in HH:MM format?

The way it is now, it shows the minutes.(show 01:30 instead of 90)
 
I made a simple ASP like this:
Code:
<%
Response.Write FormatDateTime(CDate("2:00pm") - CDate("12:30pm"), 4)   
%>

The output was "01:30"

 
Just what I needed.

THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top