Jump to content

canabatz

Members
  • Posts

    116
  • Joined

  • Last visited

Everything posted by canabatz

  1. Thanks a lot , exactly what i needed
  2. im getting the time from other server and the date dosent change there it's showing same date but times after midnight also. what i need is programaticly change the date myself with a script. thanks
  3. hi all i have an array that hold times as follow(i define the date): 2016-02-24 16:55 2016-02-24 17:55 2016-02-24 19:55 2016-02-24 23:55 2016-02-24 01:34 -<----here is my problem , i want the date to change if it's after midnight. it shuold be like that automaticly: 2016-02-25 01:34 somthing like that: $day="2016-02-26"; if(strtotime(01:34) > strtotime("23:59")) { $day = date('Y-m-d',strtotime($day."+1 days")); } else { //KEEP CURRENT DATE } the time im geting from a web site with file_get_contents and there the date do not change if after midnight so i got to do it my self any help ? thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.