SunQuest
           MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 18th, 2004, 08:31 PM
awbrab awbrab is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Singapore
Posts: 28 awbrab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
datetime convert to text

Currently i have no problem using SQL analyser to filter by date.
Select * from Table1
Where (Date# Between '15-jun-02' And '19-jun-04 23:59:59')

However i am not able to enable user to enter their own perferred date through the webpage using Request.Form.

Is it true that if i need user to specified the date on the webpage, then i need to convert the input first before using it to retrieve the record according to the date?

If so, converting the input is easier or convert the date first before comparing is easier?

Is there anyway that MS SQL Server can convert the field Date#, datatype=datetime, default value=getdate(), to another field to text automatically?

If cannot, then what is the sql statement to convert datetime to text? Or how to convert the input in order to compare with the date?

By thw way what is the meaning of using %?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > datetime convert to text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway