Date Interval Functions

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Date Interval Functions

    On a form I have

    Date_Start Date_End

    I have a new
    Date_Start1 Date_End1 which the use
    inputs.

    I need to validate that Date_Start1 and Date_End1 are a date range
    entirely separate from Date_Start and Date_End i.e. no overlapping
    whatsoever. In effect checking a date interval.

    Are there any functions out there already written that can do this? It
    seems to basic to start comparing and contracting dates! Would like to
    do it in Javascript, but happy in vbscript also.

    Thanks,
    Lynn
    Lynn Guest

  2. Similar Questions and Discussions

    1. VB Date functions into ISO format for SQL server
      Hi everyone, I am developing a advertising portal site for villa rentals. In which we require to charge for advertising on a 6 or 12 month basis....
    2. to_char(interval, text) deprecated in future - how do we getconsistent interval output without it?
      I saw the note in the docs that to_char(interval, text) is deprecated, and will be removed. I searched the archives and saw more mentions of this,...
    3. Date functions in ASP
      ISDATE(...) or if you want to find the last day of the current month, set the date to the first, add one month using dateadd, minus 1 day. ...
    4. ASP & Date Functions
      Hi, I was wondering if there was a function in ASP that checks a date to see if it is valid or not. I am aware of the IsDate function, but I...
    5. DB2 Date and Holiday Calendar functions.
      People, Has anyone had occasion to implement holiday functionality into a DB2 calendar of sorts ? I'm looking for suggested ways of implementing...
  3. #2

    Default Re: Date Interval Functions

    Lynn wrote:
    > On a form I have
    >
    > Date_Start Date_End
    Already answered over at .asp.general. Please do not multipost. This
    question, as asked, has nothing to do with databases, so there was no point
    to posting it here. Posting it here as well as in .general did not increase
    your chances of getting an answer (most of us subscribe to both groups). On
    the contrary, if somebody had taken his time to answer it here, only to find
    that it was already resolved in the other group, that person may have been
    annoyed enough to ignore any future posts from you, thereby decreasing your
    chances of getting help in the future.

    There are times when you will not be sure which group is most appropriate
    (again, this was not one of them), and you will want to post a question to
    both groups. In that situation, you should use the cross-posting technique,
    rather than posting the same message multiple times. To crosspost, put a
    semicolon-delimited* list of the newsgroups to which you wish to post in the
    To: header of your post and post it once. It, and any replies to it, will
    appear in all the newsgroups in your list. So, if I reply in .asp.general,
    my reply will also appear here in .asp.db.

    * ... or whatever delimiter is recognized by your news client

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139