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

Posts: 1
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, 06:16 PM Re: selecting record between dates
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What’s He Looking At?
Posts: 4,983
Name: John Alexander
Select whatever Order By Format(DateField, 'mm-dd-yyyy') I think will do it.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 10-20-2007, 01:49 PM Re: selecting record between dates
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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

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
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.12855 seconds with 13 queries