[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

January 21, 1900 ?

I am using Delphi 1.0, and I find that the following code generates a Y2K bug:

FormatDateTime(' dddd, mmmm d, yyyy',
StrToDateTime(DateToStr(Date)));

How do I get this to display the correct century?

0
Monroe406
Asked:
Monroe406
1 Solution
 
rwilson032697Commented:
Listening
0
 
intheCommented:
hi
you should read here:
http://www.borland.com/about/y2000/delphi.html

you can get copies of delphi3 for free on some magazine etc..
see www.pcplus.co.uk for a back issue with special deals for upgrading
Regards Barry
0
 
maharaCommented:
delphi1 may be no y2k compatible, i think. create your solution! (as 00-49 belongs to the new century)

(note that after delphi2, the date is calculated differently: there is a date format change)
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
Monroe406Author Commented:
The URL is of no value to someone using Delphi 1, and who needs to write 16 bit programs.  The URL simply states...

Delphi 1 & 2 - Product will not be tested and should be considered non-y2k ready.


0
 
maharaCommented:
monroe, i have several old apps (mostly DOS apps) still working with y2k, with some problems or not.

let me try to help if you encounter any unexpected y2k bugs.

0
 
Monroe406Author Commented:
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now