Have  you looked at calendar?
For example dbss 'calendar : 2 3' and studying the variable r is
instructive. Mostly it might help to automate dealing with other years.

calendar 2016, 1+i. 12

On Mon, Dec 31, 2018 at 3:09 PM Raul Miller <[email protected]> wrote:

> Any better ways to do this?
>
> dd=: (101 }.@":@+ i.)&.> 31 29 31 30 31 30 31 31 30 31 30 31
> mm=: 101 <@}.@":@+ i.12
> dates=: '2016-',"1/;mm ([,"1/'-',.])each dd
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to