Results 1 to 2 of 2

Thread: Special Date calculation ...

  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Special Date calculation ...

    Hello, I REALLY need some help creating a special date calculation. I want to calculate the difference between 2 mysql fields but display the difference as:
    //
    //
    02:19:21
    //
    02 is days
    19 is hours
    21 as minutes
    //
    //
    $Dater01 = $row['tblTabler00_Dater01']; //2010-12-16 23:45:00
    $Dater02 = $row['tblTabler00_Dater02']; //2010-12-14 04:24:00
    //
    $Dater03 = $Dater01 - $Dater02
    //
    Important is that a negative amount is valid, meaning it is overdue. Any help would be greatly appreciated.
    //
    Regards,

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •