Friday 15 February 2013

php - How to get the next two saturdays from a specific date -


I'am is searching a lot without finding a solution.

Here is my code:

  posted = "2/28/2013"; $ Timestamp = strotom ($ _ POST ['date']); $ Date = date ("Y-M-DH: I: S", $ timestamp);   

I would like to place two assist dates for the customers (nominated by the user) on the next two saturdays on Saturday. Saturday = date ("MDY", strotomom ('1 Saturday'));

  $ next Saturday = date ("MDY", stratetime ( $ Date 'next Saturday')); $ Next Saturday 2 = date ("MDY", stratetime ($ next Saturday. '+ 1 week'));   



No comments:

Post a Comment