Here's one option:
<%
Function DisplayTime(thisTime)
Dim strTime
strTime = FormatDateTime(thisTime, 3)
DisplayTime = Left(strTime, InStrRev(strTime, ":")-1) & Right(strTime, 3)
End Function
Response.Write DisplayTime("7/24/2004 8:45:00 AM") %>
"Scott" <sb*****@mileslumber.com> wrote in message
news:O6**************@TK2MSFTNGP09.phx.gbl...
I have a datetime field that looks like 7/24/2004 8:45:00 AM
I just want to display 8:45 AM
<%= FormatDateTime(Now, 3 )%> returns: 8:45:00 AM
Any idea how to get rid of seconds?