Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2004, 10:45 PM
Friend of Wrox
 
Join Date: Sep 2003
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.

Thanx.

 
Old May 11th, 2004, 03:03 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default

Hi

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.

Regards
Marnus





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





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