hi,
i need some help in date manipulation using php
This is my probelm:
i want to do a date check for hotel and airline reservations
The condition is as follows
Eg. If it is 2pm on 27th Sep,2002, then the check-in day will be 3 days later(including the day of booking), that is 29th Sep
iam using the follg code. but this not exactly solve my prolem
<?
include('datediff.php');
include('dateadd.php');
$currenttime = time();
echo "Current time: ". strftime("%Hh%M %A %d %b" ,$currenttime)."<br>";
$newtime = DateAdd ("d",5 ,$currenttime);
echo "Time plus days: ". strftime("%Hh%M %A %d %b" ,$newtime)."<br>";
$temptime = DateDiff ("d",$currenttime ,$newtime);
echo "Interval between two times: ".$temptime;
?>
iam using the standard function for DateAdd and Date Diff
Can anyone help?
If iam not very clear, kindly let me know
Thanks in advance
Shanthy