Focal Point
How to display the dates before 1900 in Excel

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6501094003

September 25, 2008, 06:50 AM
Narayana
How to display the dates before 1900 in Excel
I have a date field of format YYMD in my report where in there are date values before 1900 like 0001/01/01.
My report output is Excel(EXL2K) and the dates that Excel allows is between 1900 and 9999, and it is displaying the date values before 1900 as #'s.
I tried the output format as Excel(EXL97) and in this format i am getting the dates properly even if the date is befor 1900. but the problem in this format is that the SUBHEAD and the SUBFOOT are being displayed as like in the HTML format as page wise (SUBHEAD & SUBFOOT are getting repeated for each page end).

How can i diplay the date in EXL2K format?


Prod: WebFOCUS v7.1.4 OS: Windows Outputs: Excel, HTML, Pdf
September 25, 2008, 08:22 AM
nubi
i believe the base start date in excel starts at 1900 or 1901...

ive never had to display a date from so long ago but remember it being mentioned a number of times....


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
September 25, 2008, 11:55 AM
j.gross
Yes, it's an Excel limitation (at least in Excel 2007):

If you enter mm/dd/yyyy for a date earlier than 01/01/1900, it gets stored as a character string.

If you enter integers and then format the cells as dates,
1 = Sun, 01/01/1900
0 = Sat, 01/00/1900 (!)
-1 = ######################## (regardless of columns width).


- Jack Gross
WF through 8.1.05
September 25, 2008, 12:18 PM
hammo1j
There are No dates before 1900: that was when we fundamentalists believe God created the World.

29/01/1900 was the day He erroneously created the Dinosaurs. Hence this day does not appear in Excel.

The good news is that the world will not end as some predict in 2012. For those who wish to know the end find out the maximum Excel date that was ordained.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
September 26, 2008, 03:12 AM
nubi
CELL FORMULA:

=1.99 *10^6

CELL FORMAT = DATE....

the end of the world is not nigh, not even close... Good One


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor