5 months ago

Compare dates that are in the "2019-04-01T15:25:29Z" format?

Posted 5 months ago by uccdev

Hi, I need to compare two dates to see which one is the newest.

The dates aren't in a conventional format, though, they're formatted like in the title.

So say I have a date "2019-04-01T15:25:29Z". I want to compare that with "2019-04-01T19:00:12Z" and tell me which one is more recent.

Does anyone know how Laravel can manage such a comparison? I'd sincerely appreciate it.

Please sign in or create an account to participate in this conversation.