Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Date Formatting Problem

Hi, the date 01-Jan-1900 and 01-Jan-2000 both are
displayed as 01-Jan-00 by Excel when downloading a ASP
page business report (by programming it) into Excel.
Apparaently, the Excel makes the final decision by
reformatting the specified and inserted date 01-Jan-1900
and displaying it as 01-Jan-00 causing confusion with 01-
Jan-2000 which again the Excel would display as 01-Jan-00.

I must say that the data passed into Excel is correct but
the displayed format is driven by Excel.

has anybody got any suggestion os solution to this
problem? Please let me know if you need more explanation.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Date Formatting Problem

Hi
why not format the cell/column with a different date
format. e.g.
DD-MMM-YYYY

-----Original Message-----
Hi, the date 01-Jan-1900 and 01-Jan-2000 both are
displayed as 01-Jan-00 by Excel when downloading a ASP
page business report (by programming it) into Excel.
Apparaently, the Excel makes the final decision by
reformatting the specified and inserted date 01-Jan-1900
and displaying it as 01-Jan-00 causing confusion with 01-
Jan-2000 which again the Excel would display as 01-Jan-00.

I must say that the data passed into Excel is correct but
the displayed format is driven by Excel.

has anybody got any suggestion os solution to this
problem? Please let me know if you need more explanation.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Date Formatting Problem

Thanks for the reply. I am not too sure how to format
the cell/column from within the ASP page?

I write the code in ASP page and build the excel report
using Stream object as follows:

With vStream
.WriteText "<HTML", C_adWriteChar
.WriteText "<BODY", C_adWriteChar
.WriteText "<TABLE border=1", C_adWriteChar
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
Date Formatting Problem John Calder New Users to Excel 3 August 12th 09 12:22 AM
Date Formatting Problem Jocko69 Excel Discussion (Misc queries) 3 November 6th 05 06:59 PM
Date formatting problem Anne CFS Excel Discussion (Misc queries) 1 July 19th 05 01:31 PM
Date formatting problem greg7468 Excel Discussion (Misc queries) 4 July 7th 05 09:44 PM
Problem with Date Formatting The Data Detective Excel Discussion (Misc queries) 0 March 30th 05 12:57 AM


All times are GMT +1. The time now is 05:43 PM.

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"