Wrox Programmer Forums
|
Classic ASP Basics For 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
 
Old October 17th, 2006, 04:47 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date Format Problem

I am using FoxPro database. I have used british format date. When I have used the query for retrieving data from specific range sometime it gives result. Sometime it does not gives any result.

The problem is if I enter 15/10/2006 it recognizes that the first value is date, second is month. If I enter 11/05/2006,this situation it takes 11 as month and 5 as date. Help to solve this problem.

The FORM input value is stored as:
dtF = trim(Request.Form("dtFrom"))

The Query string is:
SELECT * FROM ISSUE WHERE IDATE >= #" & dtF & "#"
 
Old October 20th, 2006, 03:24 PM
Authorized User
 
Join Date: Oct 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ricespn
Default

Can you post the code for your form?

=======================
Strange and crazy, but everything is possible
 
Old October 23rd, 2006, 01:49 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The form code to accept date is:
<INPUT Type="Text" Name="dtFrom" Size="10">





Similar Threads
Thread Thread Starter Forum Replies Last Post
Date format problem abhishekkashyap27 C# 2005 1 June 23rd, 2008 02:25 AM
Date Format Problem Scripts82 Access VBA 2 March 13th, 2006 09:36 PM
Date format problem ERC Crystal Reports 1 June 15th, 2005 04:03 AM
Date format problem widad Classic ASP Basics 1 October 15th, 2004 06:31 PM
Date Format problem in Oracle ppenn Oracle ASP 1 May 10th, 2004 06:00 PM





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