TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BRYAN SMITH
from: JORGEN DE GIER
date: 1996-09-19 19:06:00
subject: Delphi Date?

Hallo Bryan,
Bryan Smith schreef dit aan Jorgen De Gier:
 BS> The calendar component will act "intellegently" if you start with say 31
 BS> Jan of some year, and then add 1 to the month, i.e. it will flip to Feb 
28
 BS> or 29 as appropriate.  Do you know what Decode/Endcode will do ?
No intellegence AFAIK.
EncodeDate will throw an exception if you supply the wrong date.
Within an exception handler you can lower the day and try it again until no
exception occurs.
It's more work as using the TCalendar component, but a better solution in my 
point of view.
Toedeloe,
Jorgen de Gier
--- GEcho 1.00
---------------
* Origin: Hoi! (2:280/606.9)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.