Classic ASP BasicsFor beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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
Problem:
I want to display all records which are posted before 10:00:00 AM on 3rd March. The problem is, it is displaying all records posted before 10:00:00 PM on 3rd March.
Following is the part of query for time:
FORMAT(EXPIRE_TIME,'LONG TIME') < #"& time() &"#
Database is MS Access and time stored in database is in 24Hrs format.
;;;I want to display all records which are posted before 10:00:00 AM on 3rd March.
Wouldnt the query above give you all records before 6:05:06 PM?
IMO Storing dates and times in the same field is a better practice. What is an exact example of the values held in the 'EXPIRE_DATE' and 'EXPIRE_TIME' fileds.