TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BRYAN SMITH
from: DON KRAUSE
date: 1996-09-09 12:46:00
subject: Delphi Date?

BS> DK> I'm looking for a way, to have delphi provide a date into the future.
BS>Remember that a TDateTime variable is really just a real number, of which
  >the integer part is the number of days since some obscure reference date 
n
  >the past, and the fractional part (if not 0.00) represents the 
ime-of-day.
  >So to move forward by 14 days, just add 14.0, e.g.
BS>TwoWeeksAhead := Date + 14.0 ;
Ouch! (Slapping head!). You are correct, I mistakenly assumed that a 
tDateTime was equal to TP's DateTime Record structure. That'll teach me to 
read the docs....
Thanks,
=Don=
---
 * QMPro 1.52 * System halted... hit  to continue... 
--- InterEcho 1.18
---------------
* Origin: the Squirrel's Nest BBS þ (909) 338-4748 (1:207/501)

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™.