How to get most recent date from an array of dates?
Posted
by
sugarFornaciari
on Stack Overflow
See other posts from Stack Overflow
or by sugarFornaciari
Published on 2012-06-13T10:23:54Z
Indexed on
2012/06/13
10:40 UTC
Read the original article
Hit count: 212
Hy guys I have an array of dates such as
array(5) {
[0]=> string(19) "2012-06-11 08:30:49"
[1]=> string(19) "2012-06-07 08:03:54"
[2]=> string(19) "2012-05-26 23:04:04"
[3]=> string(19) "2012-05-27 08:30:00"
[4]=> string(19) "2012-06-08 08:30:55"
}
I would like to know which is the most recent date, comparing to the today date.
Do you have any idea to do that?
© Stack Overflow or respective owner