I have to compare (greater than) two dates formatted as 'dd/MM/yyyy hh:mm:ss'. For instance: 30/11/2015 14:24:35. I've tried to convert them to timestamp and then compare each other. But the attempt to convert to timestamp wasn't successful.
$ date --date='16/12/2012 07:21:22' +"%s" date: invalid date `16/12/2012 07:21:22' How can I do that (directly, or converting to timestamp, or using another solution)?