p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
I forgot my password Register Now
Register | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 22nd, 2004, 03:45 PM
Friend of Wrox
Points: 473, Level: 7
Points: 473, Level: 7 Points: 473, Level: 7 Points: 473, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date format in ASP and in SQL 2000 Database

Hi All,

I have alway known that there is an issue when it comes to dates format. Here is what my ASP page does. It contains a text box where users will input their birthday date in mm/dd/yy format. The datatype of the date field in SQL is "datetime." The data looks fine after I have submitted the date into the database(ie. 02/16/88).

Now my question is, if I were to create another ASP page where I enter a birthday to search for, let say birthday >= to 02/16/88, how would I code that? Can I simply do something like:

Select from databasename where birthday_field >= "birthday_search_input"

THanks in advance for your help.

Leon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 23rd, 2004, 12:57 AM
Friend of Wrox
Points: 616, Level: 9
Points: 616, Level: 9 Points: 616, Level: 9 Points: 616, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Leon,

http://vyaskn.tripod.com/searching_date_time_values.htm -- you might
want to read this.

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Date Format apollon10 ASP.NET 3.5 Professionals 1 November 13th, 2007 05:54 AM
Sql Insert -- date format issue feets Access VBA 2 June 12th, 2007 01:11 PM
retrieve date with format (M Y) form database php Mahmoud82 PHP How-To 2 November 30th, 2006 07:10 AM
SQL DATE-Format Problem Fritz Oracle 1 August 26th, 2005 08:14 AM
date format in ASP ? mateenmohd SQL Server 2000 8 February 22nd, 2004 01:17 AM



All times are GMT -4. The time now is 02:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc