Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
aldsv
 
Posts: n/a
Default Excel Query Wizard Date Format


I use Excel Query Wizard to connect to a SQL server to get data. I
return an invoice date, but the date is stored as "YYYYMMDD" integer.

Is there a way I can modify the query to recognize the date as a
"MM/DD/YYYY" format? I know how to write formulas in Excel that will
give me the result, but I want to do it in the Query, so I don't need
formulas.

Perhaps I can modify the SQL statement (I've never used SQL).

Thanks-aldsv


--
aldsv
------------------------------------------------------------------------
aldsv's Profile: http://www.excelforum.com/member.php...o&userid=20494
View this thread: http://www.excelforum.com/showthread...hreadid=375184

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

When I pull date/time columns from SQL using MS Query, the values are placed
in Excel as date/time. Therefore, I wonder if the dates in your SQL system
are stored as "YYYYMMDD" integers and not as dates. You can check this by
viewing the data in the query editor. If it shows up as "YYYYMMDD" then it's
not date/time data. Alternately, in the Query editor under the File menu is
an option for Table definition. If you check there you'll be able to see if
the column is date/time.



"aldsv" wrote:


I use Excel Query Wizard to connect to a SQL server to get data. I
return an invoice date, but the date is stored as "YYYYMMDD" integer.

Is there a way I can modify the query to recognize the date as a
"MM/DD/YYYY" format? I know how to write formulas in Excel that will
give me the result, but I want to do it in the Query, so I don't need
formulas.

Perhaps I can modify the SQL statement (I've never used SQL).

Thanks-aldsv


--
aldsv
------------------------------------------------------------------------
aldsv's Profile: http://www.excelforum.com/member.php...o&userid=20494
View this thread: http://www.excelforum.com/showthread...hreadid=375184


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Date Format - users should be able to override it automatic. jamezog Excel Discussion (Misc queries) 7 May 20th 10 02:45 PM
Changing the format of an Excel output file made by Microsoft Access Amir Excel Discussion (Misc queries) 2 May 1st 05 12:57 AM
Returning data to Excel sheet from MS query SNB Excel Discussion (Misc queries) 0 April 27th 05 01:27 AM
Excel Date Format - Stop? Bob Excel Worksheet Functions 4 January 11th 05 01:11 AM
Converting a date in Excel 2002 to a Year/Quarter format Jim Excel Worksheet Functions 2 January 10th 05 07:49 PM


All times are GMT +1. The time now is 08:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"