Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    4

    Unanswered: urgent! How can I get the date after serval months of the given date?

    Hi,
    I can get the date 3 months after 2003-08-14 by dateadd(mm,2003-08-14 ) in Sybase. But I can't find the function in DB2. Does the function exist? And where can I get the help book about DB2?

    Please help...
    Thanks very much!

  2. #2
    Join Date
    Aug 2003
    Posts
    4

    Re: urgent! How can I get the date after serval months of the given date?

    Originally posted by vivi
    Hi,
    I can get the date 3 months after 2003-08-14 by dateadd(mm,2003-08-14 ) in Sybase. But I can't find the function in DB2. Does the function exist? And where can I get the help book about DB2?

    Please help...
    Thanks very much!
    I have found the answer. Only to use the expression : DATE('2003-08-14') + 2 MONTHS
    anyway , thanks!

  3. #3
    Join Date
    Jan 2003
    Posts
    1,605
    Hi,

    The date function is unnecessary. So: '2003-08-14' + 2 MONTHS should also work.

    Hope this helps,
    Grofaty

  4. #4
    Join Date
    Jan 2003
    Location
    Zutphen,Netherlands
    Posts
    256
    Vivi,

    The best reference for functions ( and other stuf ) can be found here:

    http://ourworld.compuserve.com/homep...l/HOMEPAGE.HTM
    Ties Blom
    Senior Application Developer BI
    Getronics Healthcare
    DB2,ORACLE,Powercenter,BusObj,Access,
    SQL, SQL server

Posting Permissions

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