I have a form where user have to enter how many days example user enter for 2 days and it will deduct 2 days back.the result will looks like this\[code\]Current Date: 2012-02-10 Last date: 2012-02-08\[/code\]the time will be set every 11:59pm for each duration.because from this calculation i have to find the data from sql that match with the duration time...\[code\]Current Date: 2012-02-10 Last date: 2012-02-08List data xyz from the date is 30 times\[/code\]How can I do this in PHP?