#2658 Add query Date.isWeekend

fraya Fri 20 Oct

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

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

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

Login or Signup to reply.