#2658 Add query Date.isWeekend

fraya Fri 20 Oct 2017

I would like to request a small query in sys::Date to use this code

if (date.isWeekend)

instead of

if (date.weekday == Weekday.sat || date.weekday == Weekday.sun)

Am I the only one that miss it?

Thanks

brian Fri 20 Oct 2017

I don't believe that weekends are the same across the world, so that gets into localization issues (maybe I'm wrong?)

fraya Fri 20 Oct 2017

Yes! it's true. I'm so egocentric. Sorry.

Login or Signup to reply.