CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Posts
    22

    sql*plus or pl/sql question

    How would you calculate the difference between two dates?

  2. #2
    Join Date
    Aug 2005
    Posts
    22

    Re: sql*plus or pl/sql question

    Apparently i should use DATEDIFF ... how do i use DATEDIFF?

  3. #3
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

  4. #4
    Join Date
    Oct 2005
    Location
    India
    Posts
    24

    Talking Re: sql*plus or pl/sql question

    hi ,

    try this.

    datediff( 'mm', d1, d2 ).where mm is month.for date you give dd.ok

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured