Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
PEA
 
Posts: n/a
Default Formatting datetime problems importing data from mysql db

Hi
I have a mysql db. There is a timestamp in the data formatted like this.
Time Date
11:44:26 22-02-2006
13:56:55 22-02-2006
14:09:35 22-02-2006
14:20:37 22-02-2006
I use ms query to create a query via an odbc connection to the db. When the
datatime is returned it look like this whatever how the cells in excel are
formatted
Time Date
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006

What is the problem and how can it be solved?
Regards
PEA

  #2   Report Post  
Posted to microsoft.public.excel.misc
bj
 
Posts: n/a
Default Formatting datetime problems importing data from mysql db

if it looks the same no matter what format you have it is coming in as text .
I think the problem is either in your query or data base.

"PEA" wrote:

Hi
I have a mysql db. There is a timestamp in the data formatted like this.
Time Date
11:44:26 22-02-2006
13:56:55 22-02-2006
14:09:35 22-02-2006
14:20:37 22-02-2006
I use ms query to create a query via an odbc connection to the db. When the
datatime is returned it look like this whatever how the cells in excel are
formatted
Time Date
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006

What is the problem and how can it be solved?
Regards
PEA

  #3   Report Post  
Posted to microsoft.public.excel.misc
PEA
 
Posts: n/a
Default Formatting datetime problems importing data from mysql db

Hi
when I look at the time data in the query window before I execute the query
the time is showed correctly
PEA

"bj" wrote:

if it looks the same no matter what format you have it is coming in as text .
I think the problem is either in your query or data base.

"PEA" wrote:

Hi
I have a mysql db. There is a timestamp in the data formatted like this.
Time Date
11:44:26 22-02-2006
13:56:55 22-02-2006
14:09:35 22-02-2006
14:20:37 22-02-2006
I use ms query to create a query via an odbc connection to the db. When the
datatime is returned it look like this whatever how the cells in excel are
formatted
Time Date
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006
00:00:00 17-01-2006

What is the problem and how can it be solved?
Regards
PEA

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
Importing Data Jillian Excel Worksheet Functions 9 December 23rd 05 12:45 PM
Importing External Data function xppuser Excel Worksheet Functions 1 December 19th 05 01:34 AM
Excel changing number formatting and source data in graphs on it's own!!! JohnHamer Excel Discussion (Misc queries) 2 September 22nd 05 02:29 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
IMPORTING TEXT DATA Bill C Excel Discussion (Misc queries) 1 May 12th 05 10:05 AM


All times are GMT +1. The time now is 08:17 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"