I want to know the next date of a given date.
my input's type is int
, For example:
when i input 20220623
, i need output 20220624
I think it can not be implemented by pure arithmetric operation.
I googled this, but can't find a good method.
I perfer not to do this by self handling method, better using the standard library, because that will be fast and reliable.
So, is there any usable method in c++ standard library can use to do date arithmetric operation?