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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java or SQL - Calculate difference between dates

  • 30-04-2005 4:12pm
    #1
    Registered Users, Registered Users 2 Posts: 7,501 ✭✭✭


    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