#2655 Date.min() and Date.max()

SlimerDude Thu 12 Oct

I was just trying to obtain the latter of two dates and thought it may be nice to add min() and max() methods to Date / DateTime / Time, similar to what numbers have.

date1  := ...
date2  := ...
latest := date1.max(date2)

... vs ...

latest := date1 > date2 ? date1 : date2

brian Yesterday

We don't have those because of sys::DateTime.min

Login or Signup to reply.