Reply
selecting record between dates
Old 10-19-2007, 02:31 PM selecting record between dates
Junior Talker

Posts: 1
Trades: 0
I need to select record from a table in my database.the table field has a varchar type that holds date data.I want the records to be displayed according to the date selected by the user desc.The problem is that the record displays only data by the day and not by month.i want a chronological display of data.
bidish is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-19-2007, 07:16 PM Re: selecting record between dates
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,674
Name: John Alexander
Trades: 0
Select whatever Order By Format(DateField, 'mm-dd-yyyy') I think will do it.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 10-20-2007, 02:49 PM Re: selecting record between dates
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,943
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75125

Haven't tried this specific method myself, but I have used convert in the past and it has worked for me.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to selecting record between dates
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13706 seconds with 13 queries