Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default curious date results

Try looking at the regional settings on your machine.

Excel will use these as the default date format. It's likely that oracle is
returning them in mm/dd/yyyy format. If there is a mismatch you will only
notice it with dates like 14/7/03 and not 7/7/03 as 7 is both a valid date &
month.


--

Regards,


Bill Lunney
www.billlunney.com

"andyL" wrote in message
...
I have a curious problem,
I have made an Excel macro command (VB6) with which I run
a select query in an Oracle Database, the query returns a
line from dates in a Excel Sheet, the date format of the
sheet is dd/mm/yyyy hh:mm:ss. The problem is that certain
prices are with error format (mm/dd/yyyy hh:mm:ss)
For example if the results from the beginning of this
month it would supposed to be like:
01/07/2003,02/07/2003...10/07/2003..14/07/2003,15/07/2003
they are appearred to me:
07/01/2003,07/02/2003....07/10/2003...14/072003,15/07/2003
It's anyone out there that knows why this happen?
I hope you understand me cause English is not my native
language.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default curious date results

My regionals settings are dd/mm/yyyy
the date format in excel is dd/mm/yyyy hh/mm/ss
the sql query in the SQL Plus got not any problem.
The problem is the same
is there any way to stabilise the date from my code???

-----Original Message-----
Try looking at the regional settings on your machine.

Excel will use these as the default date format. It's

likely that oracle is
returning them in mm/dd/yyyy format. If there is a

mismatch you will only
notice it with dates like 14/7/03 and not 7/7/03 as 7 is

both a valid date &
month.


--

Regards,


Bill Lunney
www.billlunney.com

"andyL" wrote in message
...
I have a curious problem,
I have made an Excel macro command (VB6) with which I

run
a select query in an Oracle Database, the query

returns a
line from dates in a Excel Sheet, the date format of the
sheet is dd/mm/yyyy hh:mm:ss. The problem is that

certain
prices are with error format (mm/dd/yyyy hh:mm:ss)
For example if the results from the beginning of this
month it would supposed to be like:

01/07/2003,02/07/2003...10/07/2003..14/07/2003,15/07/2003
they are appearred to me:

07/01/2003,07/02/2003....07/10/2003...14/072003,15/07/2003
It's anyone out there that knows why this happen?
I hope you understand me cause English is not my

native
language.



.

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
Curious interaction W/Win Exp. Jim H. Excel Discussion (Misc queries) 6 August 5th 08 09:38 PM
Curious math Illya Teideman Excel Discussion (Misc queries) 2 August 30th 07 09:44 AM
Just curious famdamly Excel Discussion (Misc queries) 2 December 7th 05 01:33 AM
Just curious RedChequer Excel Discussion (Misc queries) 3 March 10th 05 11:15 PM
Curious about SUMPRODUCT Wazooli Excel Worksheet Functions 5 December 20th 04 08:21 PM


All times are GMT +1. The time now is 01:39 AM.

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

About Us

"It's about Microsoft Excel"