current date - yesterday's date
Hi!! I have created a script that will calculate or show that statistics of call every hour. My problem is that the file that I'm going to read for processing the stats is delayed. So when I have to get the stats on 11PM and the script runs on 12:30 it reads nothing since the posting of file is 30 mins late(Sorry If I can't explain this cleary). All I wnated is to get the time from 11PM to 1159 PM the other day even if I run the script at 12:30 of the present day. How will I subtract the one day from the current time. I have just declared a varibale of date. Please help me on this one.