Results 1 to 3 of 3

Thread: difference in dates

  1. #1
    Join Date
    Sep 2004
    Posts
    2

    difference in dates

    I'm an Oracle newbie...

    I have two dates on table. I need to find the number of months between the two dates.

    Thanks.

  2. #2
    Join Date
    Sep 2004
    Posts
    7
    Hi,
    You could use the built in oracle function months_between, which returns the number of months between 2 dates.

    Eg:
    select months_between(end_dt, start_dt)
    from tbl

    -Vinita

  3. #3
    Join Date
    Sep 2004
    Posts
    2
    Thanks,
    I tried it and got the results I was looking for.

Posting Permissions

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