473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Format Time display from query

ken
I am using the query bellow to display some fielsd on my page and am having
some problema displaying the data from calltime. I have the field setup in
access as short time but when it is displayed on the page it displays as
12:15 AM. How can I remove the AM/PM from the display?

Thanks
Ken
<%
notesSQL = "Select * From notes where callID =" &RSupdate("callID")
Set RScalls = dbConnection.Execute(notesSQL)
Do While Not RScalls.EOF
callscounter=callscounter+1
%>
<%=rscalls("notes")%> &nbsp;Added by: <%=rscalls("employee")%> on
<%=rscalls("notesdate")%> &nbsp;Time Spent: <%= rscalls("calltime") %><br>
Jul 19 '05 #1
2 1557
"ken" <klsloan@ingr_Spam.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am using the query bellow to display some fielsd on my page and am having some problema displaying the data from calltime. I have the field setup in
access as short time but when it is displayed on the page it displays as
12:15 AM. How can I remove the AM/PM from the display?

<%=rscalls("notesdate")%> &nbsp;Time Spent: <%= rscalls("calltime") %><br>


http://msdn.microsoft.com/library/en...atdatetime.asp

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
So you don't care if it's 6:00 AM or 6:00 PM? Okay,

<%=split(rscalls("calltime"))(0)%>

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"ken" <klsloan@ingr_Spam.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am using the query bellow to display some fielsd on my page and am having
some problema displaying the data from calltime. I have the field setup in
access as short time but when it is displayed on the page it displays as
12:15 AM. How can I remove the AM/PM from the display?

Thanks
Ken
<%
notesSQL = "Select * From notes where callID =" &RSupdate("callID")
Set RScalls = dbConnection.Execute(notesSQL)
Do While Not RScalls.EOF
callscounter=callscounter+1
%>
<%=rscalls("notes")%> &nbsp;Added by: <%=rscalls("employee")%> on
<%=rscalls("notesdate")%> &nbsp;Time Spent: <%= rscalls("calltime") %><br>

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: renee_ld | last post by:
In a query I used the function datediff to calculate the number of minutes between two time periods on a given day. This function returned the number of minutes as a long integer data type. I...
1
by: Scott | last post by:
I have a query that calculates the Total Time spent working on a project. As an employee can have multiple time entries for a project, the "total Times" are summed in a report using the following...
5
by: Macca | last post by:
Hi, I have a table which has a date/time field. I am storing them as follows :- 01/01/2005 11:25 01/01/2005 19:44 02/01/2005 05:04
3
by: google | last post by:
This is something I've done plenty of times in '97, but I can't seem to get it to work correctly in Access 2003. Say, for example, I have a form with an unbound combobox, the data source is a...
15
by: Fritz Switzer | last post by:
I'd like to have a string assigned the value of a DateTime.AddMinutes(amount) so that the string is formatted in "HH:MM" format. For example: DateTime.Now.AddMinutes(30) returns "00:30" ...
1
by: scott | last post by:
Hi Everyone, I don't know if this is the correct forum but I thought i'd ask. I have an access DB with a function to automatically safe a table with fields i'm mail merging into MS Word. Word...
3
by: John | last post by:
Hi How can I ensure that date is always assigned in dd/mm/yyyy format to a date filed, in an update query? Thanks Regards
5
by: veaux | last post by:
I'm thinking this is easy but can't get it. I have a table with following: Table1 Date 1/1/2007 Table2 Type 0107 (This is MMYY of above) So I'm having trouble using a query to turn the...
0
by: Wayne | last post by:
I am charting data from a query that consists of a Date/Time field and a Number field. The Date/Time field is the x scale on my chart. Sometimes data is collected from different times during the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.