Try this
Showmessage('Whole days difference =' + IntToStr(DaysBetween(str1,str2) +
'days.'))
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of soonhuat ong
Sent: 24 October 2005 10:52
To: [email protected]
Subject: Ädelphi-enÅ Differences days between two dates
Hi,
I have 2 strings as following:
str1 := '2005/10/28';
str2 := '2005/11/03';
Now i want to calculate the differents days in between those two
strings(after convert it to TDateTime type), any idea ?
P/S : The Datetime is in yyyy/MM/dd format
Thx in advance
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
<http://groups.yahoo.com/group/delphi-en/>
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
Basic programming language C programming language Computer programming
languages
The c programming language C programming language List of programming
languages
_____
YAHOO! GROUPS LINKS
* Visit your group "delphi-en
<http://groups.yahoo.com/group/delphi-en> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/