Is there an easy way to subtract years/months from a date?
ie, something like
2016.01.01 - `year$1 = 2015.01.01
2016.01.01 + `month$3 = 2016.04.01
Thanks
Is there an easy way to subtract years/months from a date?
ie, something like
2016.01.01 - `year$1 = 2015.01.01
2016.01.01 + `month$3 = 2016.04.01
Thanks
.Q.addmonths
Can take positives and negatives. Give it multiples of 12 for years etc
Whoops, did not see that on reference site. Thanks.
On Wednesday, December 28, 2016 at 9:20:14 AM UTC-5, Roni Hoffman wrote:
Whoops, did not see that on reference site.
It is there: <http://code.kx.com/wiki/DotQ/DotQDotaddmonths\>, but note the caveat: <http://code.kx.com/wiki/DotQ#.Q\_unreference\>.