Home » questions » how to write query to count number of night between arrival date and departure date?
how to write query to count number of night between arrival date and departure date?
I am doing hotel reservation system. Can anybody help me in write query for count the number of night for guests stay?
Example arrival date is 28-09-2006 and departure date is 30-09-2006. That means this guest is staying for 2 nights. So is 28-09-2006 night and 29-09-2006 night. How i want to write the query for count between the arrival date and departure date? Anybody have any idea?
Pls help :) TQ.
in php language
yup is two night. 28-09-2006 till 30-09-006. That means that guest is staying 28-09-2006 abd 29-09-2006 nights. So is 2 nights. Hw to write query to count between that 2 days?
28-09-2006 that guest is staying and 29-09-2006 also the guest stay. 30-09-2006 guest is check out already. So it 2 nights. How to write query to count between arrival date(28-09-2006) and departure date(30-09-2006)

Answers
Kalamazoo
On 2006-08-16 21:15:21
whuvahgut?
On 2006-08-16 19:57:01
Brady
On 2006-08-16 19:54:37
Chris
On 2006-08-16 20:15:09
Makiavel
On 2006-08-17 01:08:13
phy333
On 2006-08-16 19:54:24