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

SlimerDude Thu 12 Oct 2017

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 Mon 16 Oct 2017

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

Login or Signup to reply.