Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 10th, 2004, 10:45 PM
Friend of Wrox
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Time manipulation

Hi friends,

   My attendance system records time IN and OUT in the format 5:00 AM and 5:00PM. I want to generate a report that "how many IN in between 7:00 AM and 8:00 AM"

if have tested as rs("eventtime")>"7:00" and rs("eventtime")<"8:00"

its working but its the same result for AM or PM.
How can i differentiate and test AM and PM.


Reply With Quote
  #2 (permalink)  
Old May 11th, 2004, 03:03 AM
Friend of Wrox
Join Date: Nov 2003
Location: Johannesburg, , South Africa.
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky


You could maybe look at using something like
Y = Format(varValue, "HH:mm") where varValue will be your recordset or value containing the time. This will convert 10:00 PM to 22:00 and so on.

Hope this helps.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset Manipulation aspless Classic ASP Basics 4 October 15th, 2008 03:45 PM
Time objects comparison and manipulation x_ray Javascript How-To 1 November 29th, 2005 09:55 AM
Date manipulation otarboy Access 1 September 20th, 2004 11:50 AM
Text manipulation Thomas82 Classic ASP Databases 2 February 26th, 2004 04:17 AM
String Manipulation twsinc Access 3 February 23rd, 2004 09:57 AM

All times are GMT -4. The time now is 08:18 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.