David

Sure, I am not planning on needing an epitaph for some time yet, and when I
do, it will be Someone Else's Problem.

It just occurred to me that if you are a Travel Agent, then the calculation
of of days from a minute before midnight to a minute after is 2 as they
count the day of departure and the day of return in the holiday. Come for a
two day holiday with Ripoff Tours! And here I thought it was sun club!

Perhaps I wander off topic!


Bobby Clarke


  -----Original Message-----
  From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of David Smith
  Sent: 23 July 2005 10:28
  To: [email protected]
  Subject: RE: [delphi-en] Re: Calculate the difference in two dates values
not datetime



     good epitaph. Mind if I borrow it?

  DJS

  --- Bobby Clarke <[EMAIL PROTECTED]> wrote:

  > What exactly is meant by Days Between? For example
  > how many days are there
  > between today and tomorrow?
  >
  > There is also a difference between days and 24hour
  > periods. How many days
  > are there between a minute before midnight and a
  > minute after?
  >
  > All the mechanisms have been explained by others,
  > but care is needed to get
  > the desired results! (When is it not?)
  >
  >
  > Bobby Clarke
  >
  >
  >
  >   -----Original Message-----
  >   From: [email protected]
  > [mailto:[EMAIL PROTECTED]
  > Behalf Of Raymond Chow
  >   Sent: 22 July 2005 14:11
  >   To: [email protected]
  >   Subject: [delphi-en] Re: Calculate the difference
  > in two dates values not
  > datetime
  >
  >
  >   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
  >
  >     a..  Visit your group "delphi-en" on the web.
  >
  >     b..  To unsubscribe from this group, send an
  > email to:
  >      [EMAIL PROTECTED]
  >
  >     c..  Your use of Yahoo! Groups is subject to the
  > Yahoo! Terms of
  > Service.
  >
  >
  >
  --------------------------------------------------------------------------
--
  > --
  >
  >
  >
  >
  > [Non-text portions of this message have been
  > removed]
  >
  >




  ____________________________________________________
  Start your day with Yahoo! - make it your home page
  http://www.yahoo.com/r/hs



  -----------------------------------------------------
  Home page: http://groups.yahoo.com/group/delphi-en/
  To unsubscribe: [EMAIL PROTECTED]



----------------------------------------------------------------------------
--
  YAHOO! GROUPS LINKS

    a..  Visit your group "delphi-en" on the web.

    b..  To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

    c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.


----------------------------------------------------------------------------
--




[Non-text portions of this message have been removed]



-----------------------------------------------------
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/
 


Reply via email to