I am working on some code and have been saving months as 2 digits… e.g. Jan is 01, Feb 02 and so on.
I have written code that will take a month stored in the DB and add whatever number of months needed.
FOR EXAMPLE - This is due in month 07 and then due again in 1 month.
My code basically checks if the current month matches and the stored month and if it does it updates the stored month by the number in the DB.
As per above it takes 07 and adds 1.
The issues is that I need 08 but it is changing it and storing it as 8.
Do you know how I can force it back to 08?
Thanks for any help.