Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 17th, 2006, 04:47 AM
Authorized User
 
Join Date: Oct 2006
Location: Bhopal, M.P, India.
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 & "#"
Reply With Quote
  #2 (permalink)  
Old October 20th, 2006, 03:24 PM
Authorized User
Points: 245, Level: 4
Points: 245, Level: 4 Points: 245, Level: 4 Points: 245, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: Houston, TX, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2006, 01:49 AM
Authorized User
 
Join Date: Oct 2006
Location: Bhopal, M.P, India.
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">
Reply With Quote
Reply


Thread Tools
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
Date format problem abhishekkashyap27 C# 2005 1 June 23rd, 2008 02:25 AM
Date Format Problem Scripts82 Access VBA 2 March 13th, 2006 08: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



All times are GMT -4. The time now is 04:00 AM.


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