This code produces a sequence of dates:
firstdate: 2008.06.01
lastdate: 2008.08.31
daterange: firstdate + til (lastdate - firstdate) + 1
Is it possible to generate the same range excluding weekend dates (Sat/Sun)?
q)daterange where not (daterange mod 7) in 0 1
2008.06.02 2008.06.03 2008.06.04 2008.06.05 2008.06.06 2008.06.09 2008.06.10 ..
q)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With