Time Format

E

Ed Richter

Am wondering if there's a way to not have a time field print out including seconds as shown
4:30:00 PM My raw data in the Access database is set to medium time format and is shown in the table as follows: 4:30 PM

The cell is formatted as follows:

<td width="169"><font face="arial,helv" size="3"><% = rsObj("G_Time") %></td>

Do I need to add some type of formatting into the html page to get rid of the seconds being displayed? I thought changing format in table would have been enough, but I guess not??

Thanks!
 
T

Thomas A. Rowe

Try:

<%
Gtime = rsObj("G_Time")
%>

<td width="169"><font face="arial,helv" size="3"><%=FormatDateTime(Gtime,vbLongTime)%></td>
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Am wondering if there's a way to not have a time field print out including seconds as shown
4:30:00 PM My raw data in the Access database is set to medium time format and is shown in the
table as follows: 4:30 PM

The cell is formatted as follows:

<td width="169"><font face="arial,helv" size="3"><% = rsObj("G_Time") %></td>

Do I need to add some type of formatting into the html page to get rid of the seconds being
displayed? I thought changing format in table would have been enough, but I guess not??

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top