I would like to achieve something which I think is possible using the method Date.daysinmonth.
The thing is I am not sure what the syntax would be. Totally confused.
I have a ddbox that holds date and changes dynamically.That date would always be the last date of a month.
So what I want is in a text box using that method (if I am not wrong) to get the next month last day as date in format YYYY-MM-DD.
In other words:
If In the dropdown I have say 2009-01-31 ,in the etxt box I would like to have 2009-02-28 - the last day of next month of the same year.
Was looking around but got nothing as all examples were on a set date , date that is known. And here the date will always change.
Sorry I haven`t got any code lines , cause I simply don`t know how to start.
Thanks in advance