Search code examples
kdb

How to create a list of dates in kdb in a convenient way?


Is there any way I can input two dates and a list of date in between including themselves will be created?

eg. I would like 2017.01.01 2017.01.02 .... 2017.01.10

What I am doing now is

2017.01.01 + til 10

but I would like to input something like

2017.01.01;2017.01.10 

and it can have all the list of dates.


Solution

  • This should work

    {[sd;ed] sd + til 1 + ed - sd}