1

I have following array:

Array
(
    [1150] => Array
        (
            [name] => test1
            [start_date] => 2017-01-12 00:00:00
            [end_date] => 1485801000

        )
    [1139] => Array
        (
            [name] => test2
            [start_date] => 2017-01-12 00:00:00
            [end_date] => 1484418600

        )
    [1131] => Array
        (
            [name] => test3
            [start_date] => 2017-01-12 00:00:00
            [end_date] => 1484418600

        )
    [1123] => Array
        (
            [name] => test1
            [start_date] => 2017-01-11 00:00:00
            [end_date] => 1484764200

        )   
)

Now I want to sort it on bases of descending start date.

Weedoze
  • 13,683
  • 1
  • 33
  • 63

1 Answers1

0

I agree with @Weedoze comment but in case that it's php here are few links

http://php.net/manual/ru/datetime.diff.php

How to compare two dates in php

Community
  • 1
  • 1
user3350597
  • 471
  • 1
  • 4
  • 14