If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > change datetime to date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-07, 13:51
kernal1 kernal1 is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Unhappy change datetime to date

I have a datetime field (example: 08/06/2007 9:05:06AM) that I want to change so only the date is in a select statement (so I only get 08/06/2007). How do I write the expression?

Help is appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-06-07, 14:03
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
there is no good way that i know of to do this in ANSI SQL

which database are you using?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-06-07, 14:34
kernal1 kernal1 is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Found a workaround

Thanks for posting to my thread. I found a workaround (even though it ain't pretty) but it's working so thanks again for posting.
Reply With Quote
  #4 (permalink)  
Old 08-06-07, 14:44
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
what was your workaround?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On