Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I have the following date format: YYYYMM. I would like to add a month to this format,
but it doesnt seem to work correctly.
for example, if I have a date 201201, the new value must be 201202.
If I have a date 201212, the new value must be 201301.
Help will be appreciated.
Thanks,
Stefan
use this expression
addmonths(date#(yourdates,'YYYYMM',1)
and to format is again as YYYYMM, you can use Date() function
Date(AddMonths(Date#(yourdates,'YYYYMM',1), 'YYYYMM')
=Date(MonthEnd(Date#(YourValue, 'YYYYMM'))+1, 'YYYYMM')
Not getting the required format.
Thanks..
maybe that
let m=201212;
let m1=date(AddMonths(date#(m*100+1,'YYYYMMDD'),1),'YYYYMM');
Thanks for providing this information