minus one date from another

Discussion in 'ASP General' started by joeandtel, Feb 4, 2004.

  1. joeandtel

    joeandtel Guest

    Is there a way if someone enters a date, like 02/02/04, and have that date subtract from 02/04/04; so the number 2 is returned, and if you wanted to see if 02/05/04 is greater than 02/04/04 returns true?
    joeandtel, Feb 4, 2004
    #1
    1. Advertising

  2. > Is there a way if someone enters a date, like 02/02/04

    First of all, how are you or your software going to determine if that is Feb
    2 / 2004 or Feb 4 / 2002?

    > subtract from 02/04/04


    Next, how are you or your software going to determine if that is Feb 4 /
    2004 or Apr 2 / 2004 or Apr 4 / 2002?

    Don't allow free text date entry! You are guaranteed to have confused
    people and incorrect results.

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/
    Aaron Bertrand - MVP, Feb 4, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QXNoYQ==?=

    how to minus a date?

    =?Utf-8?B?QXNoYQ==?=, Jan 18, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    9,992
    Juan T. Llibre
    Jan 18, 2005
  2. June Moore
    Replies:
    1
    Views:
    20,454
    Kannan Ekanath
    Sep 3, 2003
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,229
    Michael Borgwardt
    May 30, 2004
  4. claude uq
    Replies:
    5
    Views:
    355
    Phlip
    Dec 17, 2003
  5. laredotornado
    Replies:
    4
    Views:
    20,617
    Roedy Green
    Oct 6, 2008
Loading...

Share This Page