Recent content by Ayub Zafar

  1. A

    PHP: How to Subtract one DateTime object from another object?

    I have two DateTime objects (format: MM:DD:YYYY HH:MM:SS), all i want is to subtract one from the other, please help ^_^ Awsome answer but JR, MANY THANKS!!! Awsome answer by JR, MANY THANKS!!!
  2. A

    How to set mysql date from a result set to a php datetime object?

    i am trying to set the date and time (DateTime stored in mysql database) to a php DateTime object, one way is to override the class some how to make that happen, but is there any easier way than that? e.g. $date = new DateTime(); $date->setDate($mysql_resultset['date_time']); and then format...
Back
Top