Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java or SQL - Calculate difference between dates

Options
  • 30-04-2005 5:12pm
    #1
    Registered Users Posts: 7,498 ✭✭✭


    Im currently writing a program that calculates the cost of a stay in a b&b.
    To do this i need to calculate the amount of time(in days) between the check in date and the check out date.

    Can this be done using java?
    I am getting the dates from an SQL server. I heard that there is an sql command that does this. If you know how to do it in Java or SQL please post.

    thanks.


Comments

Advertisement