Hi Curtis,
You can use the StrToDate function to convert your date text to a
TDateTime. For example,
DaysBetween(Today, StrToDate('07/16/2005')) will give you the days
between 7/16/2005 and today.
Hope this helps
Raymond
--- In [email protected], Curtis cloud <[EMAIL PROTECTED]> wrote:
> All,
>
> I am trying to calculate the diffence in two dates for example:
>
> todays date and 07/16/2005 which should give me 5.
>
> I attempted to use the daysbetween function but I believe it only
works with two datetime values.
>
> I have a file name test07/25/2005, I like to calculate the
difference between the file and todays date and delete the file if the
date is greater than 365 days.
-----------------------------------------------------
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/