# How to increment the month?

**URL:** <https://forum.kirupa.com/t/how-to-increment-the-month/12766>\
**Category:** Uncategorized\
**Created:** [February 4, 2003, 2:58pm UTC](https://forum.kirupa.com/t/how-to-increment-the-month/12766 "2003-02-04T14:58:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveD](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@SteveD](https://forum.kirupa.com/u/SteveD)\
**Post date:** [February 4, 2003, 2:58pm UTC](https://forum.kirupa.com/t/how-to-increment-the-month/12766/1 "2003-02-04T14:58:19Z")

</div>

Hi All,

I am using this code to display the current month in a dynamic text field ( called month) :-

onClipEvent (load) {  
now = new Date();  
thisMonth = now.getMonth();  
month = thisMonth;

}

Now, by converting the numeric into a string it will display the month of Feb ( which is equal to 1).  
I need to work out how to show the following month by clicking on a button i.e  
on(release){  
month = thisMonth++;  
}  
That button code doesn’t work the way I want it to, anyone have any ideas please

Cheers  
SteveD
