[thelist] PHP Date question

Luther, Ron Ron.Luther at hp.com
Wed Dec 13 10:40:46 CST 2006

Casey Crookston asked about moving two dates from midnight to 
midnight ... To 8pm to 8pm:

Hi Casey,

If these fields are really timestamps then it looks like you only 
need to subtract 4 hours from each one.

[Google for links to all PHP functions.]

>>$date-> Fields["DateStart"]->modify("-1 day");

How about:
 $newDateStart = $oldDateStart;   	// whatever the old date was
 $newDateStart->modify("-4 hours");
 echo $newDateStart;			// to see if it worked



More information about the thelist mailing list